hello,
I always get 500 server error when I try to add new block in permissions blocks and variables also
how can I solve this ?
I have 1.9.2.2
thank you
can anyone help,
here is the error log I get
[01-Dec-2015 18:16:01 UTC] PHP Fatal error: Call to a member function setData() on a non-object in /home/sitecc/public_html/app/code/core/Mage/Adminhtml/controllers/Permissions/BlockController.php on line 113
I tied every thing I could but I could not solve it,
here are what I did
1. change all file permissions to 644 and directories to 755
2. replace the .htaccess with one comes with magento
but I still could not solve
please someone advise
hello,
Finally, I solved the problem
here is the solution if anyone needs it
I went to magento connect manager and selected (reinstall) for all magento components/models with version 1.9.2.2 and reinstall all of them then the problem was solved
I think the problem was caused due to some problem during the updating prossec of magento
app/design/adminhtml/default/default/layout/admin.xml
This error is generated when layout cache hasn't been updated or admin.xml is missing the following code.
<!-- admin permissions block edit page --> <adminhtml_permissions_block_edit> <reference name="content"> <block type="adminhtml/permissions_block_edit" name="adminhtml.permissions.block.edit"/> </reference> </adminhtml_permissions_block_edit> <!-- admin permissions variable edit page -->
Thank elfling, Your solution worked for me. I had upgrade to 1.9.1.1 to 1.9.2.4 and encounter 500 error. Adding permission block fixed that issue.
Add following for variable block
<!-- admin permissions variable edit page --> <adminhtml_permissions_variable_edit> <reference name="content"> <block type="adminhtml/permissions_variable_edit" name="adminhtml.permissions.variable.edit"/> </reference> </adminhtml_permissions_variable_edit> <!-- admin permissions variable edit page -->