{"id":251,"date":"2011-05-16T10:06:09","date_gmt":"2011-05-16T10:06:09","guid":{"rendered":"http:\/\/songoku.homelinux.com\/wordpress\/?p=251"},"modified":"2011-05-16T10:06:09","modified_gmt":"2011-05-16T10:06:09","slug":"joomla-1-0-and-php-5-3","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=251","title":{"rendered":"Joomla 1.0 and PHP 5.3"},"content":{"rendered":"<p>hi all of you,<\/p>\n<p>i&#39;ve just tried to migrate a Joomla 1.0 site to a server running php 5.3. After migrating the files and database i wanted to check the site and bam, guess what? errors&#8230;<\/p>\n<p>If you get some errors similar to this one<\/p>\n<p>Warning: Parameter 1 to HTML_content::show() expected to be a reference, value given in \/home\/xx\/public_html\/travel\/includes\/Cache\/Lite\/Function.php on line 92<\/p>\n<p>it&#39;s because Joomla 1.0 is not compatible with php 5.3. The fix is quite simple: add a for-loop to the Function.php file (beginning of the call-function) and everythng runs again. Here the code:<\/p>\n<p>&lt;?php<\/p>\n<p>$arguments = func_get_args();<br \/>\n\t$numargs = func_num_args();<br \/>\n\tfor ($i = 1; $i &lt; $numargs; $i++) {<br \/>\n\t&nbsp;&nbsp; $arguments[$i] = &amp;$arguments[$i];<br \/>\n\t}<\/p>\n<p>?&gt;<\/p>\n<p>source: <a href=\"http:\/\/www.asim.pk\/2010\/01\/13\/joomla-does-not-support-php-5-3\/\" target=\"_blank\">http:\/\/www.asim.pk\/2010\/01\/13\/joomla-does-not-support-php-5-3\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>hi all of you, i&#39;ve just tried to migrate a Joomla 1.0 site to a server running php 5.3. After migrating the files and database i wanted to check the site and bam, guess what? errors&#8230; If you get some errors similar to this one Warning: Parameter 1 to HTML_content::show() expected to be a reference, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-251","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=251"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/251\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}