Edit HTML block throws up an error :(
Permalink
Hey I can add an HTML block but when I go to edit it I get:
The block displays ok but everytime I want to make a change I have to created a new block and add the code in again
Warning: include(/Applications/MAMP/htdocs/concrete_adance/blocks/html/form_setup_html.php) [function.include]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/concrete_adance/updates/concrete5.4.1.1/concrete/blocks/html/edit.php on line 6 Warning: include() [function.include]: Failed opening '/Applications/MAMP/htdocs/concrete_adance/blocks/html/form_setup_html.php' for inclusion (include_path='.:/Applications/MAMP/bin/php5/lib/php:/Applications/MAMP/htdocs/concrete_adance/libraries/3rdparty:/Applications/MAMP/htdocs/concrete_adance/updates/concrete5.4.1.1/concrete/config/../libraries/3rdparty') in /Applications/MAMP/htdocs/concrete_adance/updates/concrete5.4.1.1/concrete/blocks/html/edit.php on line 6
The block displays ok but everytime I want to make a change I have to created a new block and add the code in again
Hi there,
Thanks for the response.
I have cleared cache and tried to change the define DIR/REL but then the site completely broke :)
My root of C5 for this website is
http://localhost:8888/concrete_adance/...
as stated in my site.php:
and then the update at
which is all in the config/site.php
Strange as it was working earlier but all of a sudden stopped. The only thing I did out of the ordinary is step back in a version on this particular page.
Could that cause an issue?
Thanks for the response.
I have cleared cache and tried to change the define DIR/REL but then the site completely broke :)
My root of C5 for this website is
http://localhost:8888/concrete_adance/...
as stated in my site.php:
and then the update at
<?php define('DIRNAME_APP_UPDATED', 'concrete5.4.1.1');?>
which is all in the config/site.php
Strange as it was working earlier but all of a sudden stopped. The only thing I did out of the ordinary is step back in a version on this particular page.
Could that cause an issue?
Ok, it looked strange to me because I didn't know this auto-update path :-/ I never autoupdated c5, I alway make a manual update. So at least I have learned something now ;-) '/updates/concrete5.4.1.1/' is due to the update... But still there should be a 'concrete' in the path to form_setup_html.php
Could it be that you have a directory at /concrete_adance/blocks/html but with no form_setup_html.php in it? c5 checks only the existence of this directory. If it's there, it tries to load form_setup_html.php from there, also if it doesn't exist...
So, or you delete /concrete_adance/blocks/html or you copy
/concrete_adance/concrete/blocks/html/form_setup_html.php
to
/concrete_adance/blocks/html/form_setup_html.php
Hope this helps...
Could it be that you have a directory at /concrete_adance/blocks/html but with no form_setup_html.php in it? c5 checks only the existence of this directory. If it's there, it tries to load form_setup_html.php from there, also if it doesn't exist...
So, or you delete /concrete_adance/blocks/html or you copy
/concrete_adance/concrete/blocks/html/form_setup_html.php
to
/concrete_adance/blocks/html/form_setup_html.php
Hope this helps...
Hi
Thanks for the reply...
In relation to the updates... yes as of yesterday I now do Manual ones
as I ran into a bit of an issue... well a big one ;)
So you set me on the correct path. I had created a Custom template
which simply wrapped the HTML block in another class. It would seem
that this new div.class was causing the issue. I have now deleted this
custom template and wad-do-ya-know... it works.
Thanks for the assistance
Thanks for the reply...
In relation to the updates... yes as of yesterday I now do Manual ones
as I ran into a bit of an issue... well a big one ;)
So you set me on the correct path. I had created a Custom template
which simply wrapped the HTML block in another class. It would seem
that this new div.class was causing the issue. I have now deleted this
custom template and wad-do-ya-know... it works.
Thanks for the assistance
No, the div.class is no problem. It even doesn't touch the edit process at all... As you told you made a custom view I'm sure the problem is what I wrote. And I would qualify this as a bug! Someone should change the line
in
in /concrete/blocks/html/edit.php
I'll post this to the bug tracker...
<?php include($this->getBlockPath() . '/form_setup_html.php'); ?>
in
<?php include('form_setup_html.php'); ?>
in /concrete/blocks/html/edit.php
I'll post this to the bug tracker...
Hi cgrauer,
I am having the same issue when i updated the version of c5 to concrete5.4.1.1. when i edit any block on page and save it i get the error
Warning: Cannot modify header information - headers already sent by (output started at /home/c7015222/public_html/blocks/block/controller.php:1) in /home/c7015222/public_html/updates/concrete5.4.1.1/concrete/startup/process.php on line 466
- so is there any way i can sort this issue without changing core, here the error tells that the output is there on my block but i hav alaready checked there is nothing in my block controller not even space
please let me know if you have any idea for this
I am having the same issue when i updated the version of c5 to concrete5.4.1.1. when i edit any block on page and save it i get the error
Warning: Cannot modify header information - headers already sent by (output started at /home/c7015222/public_html/blocks/block/controller.php:1) in /home/c7015222/public_html/updates/concrete5.4.1.1/concrete/startup/process.php on line 466
- so is there any way i can sort this issue without changing core, here the error tells that the output is there on my block but i hav alaready checked there is nothing in my block controller not even space
please let me know if you have any idea for this
I think this is a different case, but it seems that automatic update still is the problem. I recommend to update manually.
The html block tries to include a file at
/Applications/MAMP/htdocs/concrete_adance/blocks/html/form_setup_html.php
which it probably should search at
/Applications/MAMP/htdocs/concrete_adance/updates/concrete5.4.1.1/concrete/blocks/html/form_setup_html.php
What is the actual root of your server and of c5? What is DIR_REL defined as?