Category Archive: PHP

Apr 10

cloudlinux: PHP selector NOT working or BROKEN

phpini4

It was truly devastating and I was dismayed when I noticed the PHP selector in server got broken or stopped working since the last easy-apache. Tones of tickets were popped in when clients lost their custom php versions and its custom settings I tried to select the php version 5.4 for the domain and set …

Continue reading »

Nov 01

PHP code error : “Fatal error: Call-time pass-by-reference has been removed”

The function reference “&” has already been deprecated in use from php versions over 5.3 and so. You only need to remove the symbol “&” with the function argument. Suppose if it is like below in the code array_function(&$files); make it change to array_function($files); Reload the webpage and see…..tadangg 🙂

Oct 27

PHP 5.4 : Strict standards : Non-static methods called statically

I got the following error while loading up a domain running on php 5.4 ======================= Strict Standards: Non-static method JLoader::import() should not be called statically in /home/user/public_html/libraries/joomla/import.php on line 29 Strict Standards: Non-static method JLoader::register() should not be called statically in /home/user/public_html/libraries/joomla/loader.php on line 71 Strict Standards: Non-static method JLoader::import() should not be called statically …

Continue reading »

Apr 16

Bug in PHP release version.

I came across the following error while “make” process during custom compilation of PHP. This is bug in its release which can rectified by applying a patch. ============ /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c: In function dom_canonicalization: /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c:1898: error: dereferencing pointer to incomplete ============ Download the patch “php1.patch” from the below URL. http://www.mediafire.com/?ii19zwu444z4o1z and execute the following command in the …

Continue reading »