Hello everybody,
I have got a debug problem while I was testing a redirecting php code after a thank you message.
As I have seen on previous Chronoform tutorials I have used this code to redirect the page after message submitting:
The redirect is working well, the thank you message is correctly displayed too, however I got this error after the thank you message:
Only variables should be assigned by reference [path of the theme]/custom_code/custom_code.php(20) : eval()'d code on line 2
Anyone can help me to understand this ?
Thank you and have a nice day !
I have got a debug problem while I was testing a redirecting php code after a thank you message.
As I have seen on previous Chronoform tutorials I have used this code to redirect the page after message submitting:
<?php
$doc =& JFactory::getDocument();
$doc->setMetaData('refresh', '5;url=http://example.com/index.php', 'true');
?>
The redirect is working well, the thank you message is correctly displayed too, however I got this error after the thank you message:
Only variables should be assigned by reference [path of the theme]/custom_code/custom_code.php(20) : eval()'d code on line 2
Anyone can help me to understand this ?
Thank you and have a nice day !