Search
Other Sourcerer questions
Forum

PHP Code is not working anymore after Joomla Update

Christopher Plau's Avatar Christopher Plau
Hello,
after an update from Joomla 3.10.11 to Joomla 5.0.2, the following code
<?php 
if  (isset($_SERVER['HTTP_X_GT_LANG'])) {
   echo "<h2>Doha Ausflüge & Aktivitäten GetYourGuide</h2>";  
   echo '<div data-gyg-href="https://widget.getyourguide.com/default/activities.frame" data-gyg-location-id="1885" data-gyg-locale-code="de-DE" data-gyg-widget="activities" data-gyg-number-of-items="4" data-gyg-cmp="kp-doha" data-gyg-partner-id="3VYD9IE"></div>';
} else { 
    echo "<h2>Doha Meine Landausflüge</h2>";
   echo ' <div class="col-md-12" id="widget-main-tripup" data-customer="TA1096" data-channel="kp-doha" data-cruisetype="sea" data-components="itinerary, products" data-port_id="743" data-shortproducts="false" data-showtitles="false" data-showport="true"></div> <script async defer type="text/javascript" data-containers="widget-main-tripup" src="https://widget.meine-landausfluege.de/itinerary/js/main.min.js"></script> ';
}
?>
{/source>
is no working any more. I add Code to a module position via a module and "Prepare content" is activated.

In Joomla 5 i tried to put {source}{/source} around the code, but then it doesn't work either

An example page of my website is: www.kreuzfahrt-praxis.de/joomla5/kreuzfahrt-ziele/doha-katar
It should appear at the bottom of the page below "January 2024"

On my old Joomla 3 Site it works fine:
www.kreuzfahrt-praxis.de/kreuzfahrt-ziele/doha-katar


Do you have an idea what the problem could be?
Peter van Westen's Avatar Peter van Westen ADMIN
You places something like:
{source>...{/source>
That is not correct. Use:
{source}...{/source}

Please read the documentation before asking for support:
docs4.regularlabs.com/sourcerer
Please post a rating at the Joomla! Extensions Directory
Christopher Plau's Avatar Christopher Plau
Sorry, I added the code incorrectly.

I have improved it, but unfortunately it does not work.
Peter van Westen's Avatar Peter van Westen ADMIN
Are you using a WYSIWYG editor in the module?

If not: docs4.regularlabs.com/sourcerer/going-fu...ing-a-wysiwyg-editor
Please post a rating at the Joomla! Extensions Directory
Christopher Plau's Avatar Christopher Plau
To use {source raw="true"} was the solution.
Many, many, many Thanks!!!!!!
Josh Gilson's Avatar Josh Gilson
Thanks! this helped me too
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription