PHP error message in edit.php file line 4

Permalink
Hi , I have just installed concrete5 for my first time and everything went fine.

When I try to edit my "Navigation Menu", "Sidebar" and the "Site Name" I keep getting the following error message:


PHP Error Message

Fatal error: Call to a member function inc() on a non-object in /home/a7892224/public_html/concrete/concrete/blocks/content/edit.php on line 4



Here is my edit.php code,line 4 > "($bt->inc('editor_init.php')":


.<?php
defined('C5_EXECUTE') or die("Access Denied.");
//$replaceOnUnload = 1;
$bt->inc('editor_init.php');
?>

<div style="text-align: center" id="ccm-editor-pane">
<textarea id="ccm-content-<?php echo $b->getBlockID()?>-<?php echo $a->getAreaID()?>" class="advancedEditor ccm-advanced-editor" name="content" style="width: 580px; height: 380px"><?php echo htmlspecialchars($controller->getContentEditMode())?></textarea>
</div>



I went through on the community to find a solution to the problem I tried refreshing my database, coping my edit.php file again to my server but still getting the same error message when I try to edit the blocks. I looked at the edit.php file and line 4, I dont seem to see what is wrong or what I should remove to get this to work. I am not a php expert but learning slowly.

Can anyone help please.

Thank you.

 
mhawke replied on at Permalink Reply
mhawke
The error message is indicating that the file called "editor_init.php" is having an issue.

Can you check to see if your '[root]/concrete/blocks/content' folder contains the following files:

add.php
composer.php
controller.php
db.xml
edit.php
editor_config.php
editor_init.php
icon.png
scrapbook.php
view.php

Are you working with a 'pure' installation or have you edited the actual core php files?
Remo replied on at Permalink Reply
Remo
Try to replace this
$bt->inc('editor_init.php');


with this
$this->inc('editor_init.php');
Remo replied on at Permalink Reply
Remo
Sorry, I haven't seen that the error is caused in the content block, check what mhawke wrote, that makes more sense!