Sourcerer Plugin

Search
Other Bug Reports questions
Forum

Sourcerer Plugin - syntax error, unexpected identifier with "echo"

Robin Köhler's Avatar Robin Köhler
Hi,
I'm facing some strange errors:

ParseError [500]
syntax error, unexpected identifier "Done"
.../tmp/regularlabs/3771_ed37093011301abfd7e2506f7acfec38:96

95 $zip->close();
96 //echo "Done unzipping
97 ";

In the Joomla-Editor echo is in one line:
$zip->close();
       //echo "Done unzipping<br>";

Joomla 4.2.3
Sourcerer Plugin 9.2.3

Any idea?
Thanks
Robin
Peter van Westen's Avatar Peter van Westen ADMIN
Looks like an issue with your custom php code you are placing through Sourcerer. What is the full code (including the {source} tags)?
Please post a rating at the Joomla! Extensions Directory
Robin Köhler's Avatar Robin Köhler
Confidential information:
(hidden)
Robin Köhler's Avatar Robin Köhler
Hi Peter,
thanks for you help.
It is a lot of code. So I put you a link (zip file) in the confidential section.
Robin
Peter van Westen's Avatar Peter van Westen ADMIN
For long PHP codes like this, I recommend you place it in a PHP file and simply include it via Sourcerer.
See: docs4.regularlabs.com/sourcerer/the-basics/including-files
Please post a rating at the Joomla! Extensions Directory
Robin Köhler's Avatar Robin Köhler
thanks for that hint.
The code is running correct in an external file.
You can only post on this forum if you log in