Search Posts

Category: PHP

Joomla | Database Error: The PHP `ext/mysql` extension is removed in PHP 7, cannot use the `mysql` driver

This error shows up when you change/upgrade the PHP version of your Joomla website to PHP 7.XX. This is because the mysql extension is removed in PHP 7. You may need to change all those functions in PHP code to mysqli_* instead of mysql_* if you want to use PHP 7 for your Joomla website. In cPanel EasyApache 4, the mysqli extension is provided by the mysqlnd package. For example:

cloudlinux: PHP selector NOT working or BROKEN

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 post_max_size and upload_max_filesize to 32MB each           And I checked by putting a phpinfo page in […]

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 in /home/user/public_html/libraries/joomla/import.php on line 32 ======================= and I did the below steps to clear them ======================= In php.ini, changed error_reporting […]

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 php source directory. ============ @Host [/usr/src/php-5.2.17]# chmod 755 php1.patch @Host [/usr/src/php-5.2.17]# patch -p0 < php1.patch patching file ext/dom/node.c Hunk #1 […]