CakePHP not working after installing php5-curl package

I have an Android app, it calls a web server function (using cakephp). And it returns an error similar to this "call to the undefined curl_init () function". I do a google search and try to fix this error by installing the php5-curl package, but after installing this package the web server no longer works. he returns

Strict standards: the non-static App :: core () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 429

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Warning: invalid line offset 'file' in /var/www/postmail/cake/libs/debugger.php on line 622

Warning: invalid line 'line' line in /var/www/postmail/cake/libs/debugger.php on line 622

Strict standards: the non-static App :: core () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 429

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 398

Strict standards: the non-static Configure :: read () method should not be called statically in /var/www/postmail/cake/basics.php on line 213

Strict standards: the non-static method Configure :: getInstance () should not be called statically in /var/www/postmail/cake/libs/configure.php on line 155

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 657

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 657

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 668

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 668

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 673 Warning (2): strtotime () [function .strtotime]: You cannot rely on the system time zone settings. You must use the date.timezone parameter or the date_default_timezone_set () function. If you used any of these methods and you still get this warning, most likely you are mistaken with the time zone identifier. At the moment, we have selected the time zone "UTC", but please set date.timezone to select the time zone. [CORE / cake / libs / cache.php, line 570] Strict standards: the non-static Configure :: read () method should not be called statically, assuming $ this from an incompatible context in / var / www / postmail / cake / libs / debugger. php on line 308

Strict standards: the non-static method Configure :: getInstance () should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/configure.php on line 155

Strict standards: CakeLog :: write () non-static method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 311

Strict standards: the non-static String :: insert () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/debugger.php on line 311

Strict standards: the non-static CakeLog :: getInstance () method should not be called statically, assuming $ this from an incompatible context in / var / www / postmail / cake / libs / cake _log.php on line 230

Strict standards: the non-static method App :: import () should not be called statically, assuming $ this from an incompatible context in / var / www / postmail / cake / libs / cake _log.php on line 180

Strict standards: the non-static method App :: getInstance () should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/configure.php on line 909

Strict standards: the non-static Cache :: read () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/configure.php on line 982

Strict standards: the non-static Cache :: getInstance () method should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/cache.php on line 330

Strict standards: the non-static method Configure :: read () should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/cache.php on line 505

Strict standards: the non-static method Configure :: getInstance () should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/configure.php on line 155

Strict standards: the non-static method Inflector :: underscore () should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/cache.php on line 672

Strict standards: the non-static method Inflector :: getInstance () should not be called statically, assuming $ this from an incompatible context in /var/www/postmail/cake/libs/inflector.php on line 512

Note. Trying to get non-object property in /var/www/postmail/cake/libs/cache/file.php on line 248

Fatal error: call the cd () member function for the non-object in /var/www/postmail/cake/libs/cache/file.php on line 248

Does anyone know how to fix this? Thanks in advance.

0
source share
2 answers

Check if your CakePHP / app / tmp / cache folder is accessible. I ran into a similar problem with CakePHP 1.3 and realized that this was due to permission to access the cache. Hope this helps.

In the terminal, enter the following command to enable writing to CakePHP: -

chmod -R 777 /your_root_directory/your_site_name/app/tmp/cache 
+1
source

Your cakephp version is outdated and has problems with the latest version of PHP.

You can try updating the version of CakePhp. It seems that you are using version 1.3, so update it to the latest version. You can find it

https://github.com/cakephp/cakephp/archives/1.3

Only replacing the cake / folder with a new one will you fix this problem

0
source

All Articles