EDIT BAR MISSING AFTER ERROR IN PHP BLOCK
Permalink
A page containing PHP block (with my custom php code) is not editable anymore.
The edit bar is missing.
It is caused by error in code within PHP block since Facebook has changed it's API today.
My question is how can I access the block to edit/update it when there is no edit button enymore.
Thanks for help
The edit bar is missing.
It is caused by error in code within PHP block since Facebook has changed it's API today.
My question is how can I access the block to edit/update it when there is no edit button enymore.
Thanks for help
You will probably have to get the blockID from the HTML of the page (if it's there) and find it in the database and remove the offending code from there - OR you could try adjusting your template to only show that area of the page when you are in edit mode and see if that will allow you to edit it.
I did, but I would appreciate keeping that block editable for debugging generally..
(some workaround is just saving and not publishing the block)
(some workaround is just saving and not publishing the block)
Hi,
I would just add the block, save the page and if the edit button is gone delete that version through the site map. Add the block, enter modified code and try again. You can repeat this until you have a block that does not break the page with out having to resort to editing the database.
I would just add the block, save the page and if the edit button is gone delete that version through the site map. Add the block, enter modified code and try again. You can repeat this until you have a block that does not break the page with out having to resort to editing the database.
Sure, I know, but it is not much convenient..
In my case FB changed their API after years, causing this issue sudenly (the page has not been edited a couple of years)..
In my case FB changed their API after years, causing this issue sudenly (the page has not been edited a couple of years)..
Could you use isEditMode() to bypass problematic code?
http://documentation.concrete5.org/developers/working-with-blocks/c...
This could stop your errant code from interfering with c5's editing.
You could progressively reduce the amount of your code that is bypassed using this test, which would help you narrow down what's causing the problem.
http://documentation.concrete5.org/developers/working-with-blocks/c...
This could stop your errant code from interfering with c5's editing.
You could progressively reduce the amount of your code that is bypassed using this test, which would help you narrow down what's causing the problem.