Error when publishing page
Permalink Browser Info Environment
Hi.
I installed this add-on.
It works fine when the page is in edit mode.
So I am reasonably confident that there is nothing wrong with code.
But when saved and/or published, Concrete5 generates an error.
Even a simple php echo hello world statement will fail.
Please help me to fix the error
I installed this add-on.
It works fine when the page is in edit mode.
So I am reasonably confident that there is nothing wrong with code.
But when saved and/or published, Concrete5 generates an error.
Even a simple php echo hello world statement will fail.
Please help me to fix the error
Type: | Discussion |
---|---|
Status: | In Progress |
Thank you for your prompt reply.
I tried with a simple :
<?php
echo "Hello world";
?>
It fails even with this
And it works fine when the page is in edit mode. So I am confident that the php code is fine.
I tried with a simple :
<?php
echo "Hello world";
?>
It fails even with this
And it works fine when the page is in edit mode. So I am confident that the php code is fine.
Okay interesting... I'll have a look tomorrow if possible. Please be patient :)
Thank you for your prompt reply.
I tried with a simple :
<?php
echo "Hello world";
?>
It fails even with this
I tried with a simple :
<?php
echo "Hello world";
?>
It fails even with this
Hi,
I've tested the block with the latest version 5.7.5.9, and everything seems to be fine.
Do you still have the issue?
I've tested the block with the latest version 5.7.5.9, and everything seems to be fine.
Do you still have the issue?
Hi,
I have the same problem.
I used this add-on before in other site without problems. But in this case I have this issue :(
Thanks for help,
I have the same problem.
I used this add-on before in other site without problems. But in this case I have this issue :(
Thanks for help,
Hi,
sorry, really my problem is diferent. I don't have problem to echo "hello", but my problem is with api references like that's
<?php
print $c->getCollectionName();
?>
I receive this error:
Call to a member function getCollectionName() on null
Thanks for help,
sorry, really my problem is diferent. I don't have problem to echo "hello", but my problem is with api references like that's
<?php
print $c->getCollectionName();
?>
I receive this error:
Call to a member function getCollectionName() on null
Thanks for help,
Hi gmurillo,
so the 'echo' test is working fine for you with the latest version?
For the null reference, I think the Php context is not loaded correctly. I've you tried importing your classes?
(note: I really haven't found the time to investigate the errors these days... sry for the delay)
so the 'echo' test is working fine for you with the latest version?
For the null reference, I think the Php context is not loaded correctly. I've you tried importing your classes?
(note: I really haven't found the time to investigate the errors these days... sry for the delay)
Hi,
yes the echo with a normal text works fine.
but if I try to get the value of some method from the Api of Concrete5 I have this error.
It works fine in developer mode, but when I try to publish page, gives the error.
I don't understand when you said to load classes. :(
Thanks
yes the echo with a normal text works fine.
but if I try to get the value of some method from the Api of Concrete5 I have this error.
It works fine in developer mode, but when I try to publish page, gives the error.
I don't understand when you said to load classes. :(
Thanks
Hi,
thanks I resolve my problem. I need a first line to load the handler of the page, like thats
$c= \Page::getCurrentPage();
Regards,
thanks I resolve my problem. I need a first line to load the handler of the page, like thats
$c= \Page::getCurrentPage();
Regards,
Happy it works for you!
As you see, it's a simple 'eval' call.. So something must be wrong with $content.
NB. It's been a while since I haven't played with concrete, so it may also be related to an update of the core framework.