Strict Standards: Accessing static property JCache::$_handler as non static - php

I am having an issue with my business website, and it keeps giving me the following errors on my website and login:
Strict Standards: Accessing static property JCache::$_handler as non static in /home/doveheal/public_html/libraries/joomla/cache/cache.php on line 422
Also on my website is this error:
Strict Standards: Only variables should be assigned by reference in /home/doveheal/public_html/plugins/content/jw_allvideos/jw_allvideos.php on line 42
I have seen many tutorials on how to fix it via changing the strict standard settings in XAMPP, but this does not apply to me as I do not use XAMPP. Truth be told, I did not create the website (someone else did and it was handed to me), and I am really struggling to figure out how to solve this problem.
Any help would be appreciated!

You will on your localhost (Xampp) have access to the php.ini file. Open it and search for:
error_reporting =
There will be a value after the = which you need to change to:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Once changed, make sure you restart Apache.
This is however somethign you should flag to the developer of jw_allvideos so they can fix it.
Hope this helps

Related

Joomla 1.5 Strict Standards error

So, I have been asked by a family friend to take a look at their site. It has just recently turned into a big garbled mess of errors such as;
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/sitename/public_html/libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/sitename/public_html/libraries/loader.php on line 71
Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in /home/sitename/public_html/libraries/joomla/environment/request.php on line 462
I have been looking elsewhere and I have seen mention of changing error_reporting in configuration.php, I have changed it from
var $error_reporting = '-1';
to
var $error_reporting = '6135';
This removed a lot of the errors that was appearing on the page but there is still plenty that exist. Can anyone help me with clearing up the last lot of errors?
From what I can gather, the site is Joomla 1.5 which I know needs to be updated but if I can just get the errors to 'disappear' whilst I can work on updating the site or getting a new one built that would be great!
Thanks
Add $error_reporting = 22516 if you are using PHP 5.4.x
Add $error_reporting = 22519 if you are using PHP 5.3.x
Add $error_reporting = 6133 if you are using PHP 5.2.x
And if you have php.ini access, find error_reporting and assign E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
IF doesn't work
in your index.php after define( '_JEXEC', 1 ); add error_reporting(0); if not work, replace with error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); Also, after each change if not work, check the error_reporting value in info page.
OR if you don't want to see any error, contact your host to disable display_errors or if you have access to php.ini then do that yourself.

PHP - Strict Standards error with 5.4.?

I (like a lot of others) am seeing Strict Standards errors with PHP 5.4.???.
Strict Standards: Only variables should be passed by reference in /home/xxxxxx/public_html/xxxxxx/init.php on line 64
There must have been a change between 5.3 and 5.4. All the "wisdom" on the Internet seems to be about turning the error messages off. In this case this is a program (1,000's of lines written by someone else) that I am disinclined to try to resolve.
If I turn off the error reporting then the script does not execute.
I am trying to work the issue with the writer of the script.
Is there any other solution? Is there a setting that can be placed in the .htaccess file that will allow "non strict standards"?
You need to go into your php.ini file and assign the following:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
This will allow you to show all warnings except deprecated & non-strict standards.
If you want to fix the error rather than ignore it (recomended):
$uri = explode("/",$_SERVER['REQUEST_URI']);
define("INSTALL_URL" , $protocall.$host_name . str_replace("/".array_pop($uri),"/",$_SERVER['RE‌​QUEST_URI']));

Joomla after migration on localhost

I have migrated joomla website from server to my localhost,initially i was not getting the front page content of the website it was just a white screen but the admin panel was working fine and all the contents are present there, then i have changed the error reporting to maximum in the global site configuration inside the admin panel of joomla after this site is showing the following error
Strict Standards: Declaration of fancyboxClass::getHeaderLibrary() should be compatible with JAPopupHelper::getHeaderLibrary($bodyString, $identifierString, $headerString) in C:\xampp\htdocs\joomla\plugins\system\japopup\fancybox\fancybox.php on line 18
Strict Standards: Declaration of oseLanguage::set() should be compatible with JObject::set($property, $value = NULL) in C:\xampp\htdocs\joomla\administrator\components\com_ose_cpu\oseregistry\oseLanguage.php on line 130
Strict Standards: Declaration of oseMscList::drawTree() should be compatible with oseMscListDraw::drawTree() in C:\xampp\htdocs\joomla\administrator\components\com_ose_cpu\membership\oseMscListDraw.php on line 365
Strict Standards: Non-static method oseMscConfig::getConfig() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla\components\com_osemsc\init.php on line 44
Strict Standards: Static function osePaymentTaxExtend::getTaxAmount() should not be abstract in C:\xampp\htdocs\joomla\administrator\components\com_ose_cpu\payment\osePaymentTax.php on line 135
How can i solve these error.
Thanks.
Strict standards are quite rife with PHP 5.4. The best thing to do would be to turn strict error reporting off by editing your php.ini file on your localhost and changing this:
error_reporting = E_ALL
to this:
error_reporting = E_ALL & ~E_STRICT
Else simply download the PHP 5.3 extension for your localhost
Hope this helps
You could turn off strict errors on your local server via php.ini or .htaccess.
E_ALL & ~E_STRICT

Non-static method utf_normalizer::nfc() should not be called statically

At the moment, I am installing PHPBB 3.0.10 and am having this error:
Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in C:\xampp\htdocs\PHPBB\includes\utf\utf_tools.php on line 1781
I have tried to find an answer for this on the PHPBB boards but have had no luck. I have a bit of background in PHP but don't understand static function calls from dynamic ones. I am using PHP v5.4.4, Apache 2.4.2 and Xampp 1.8.0, if any of that is of relevance. I am also running this on my localhost, not on a remote server.
To induce this error, all I am doing is installing PHPBB. Once I have inserted the Database settings and the Admin account settings, it comes up with this error and won't allow me to continue. I have no extensions installed (ofcourse).
Also, I have not been able to find the nfc function in the file specified. I am unsure as to whether it's in an include though. I also searched inside all files for "function nfc" (excluding quotation marks), but found nothing, and so am unable to use this: Strict Standards: Non-static method STemplate::assign() should not be called statically
. I am aware that this problem is common, and many people have claimed that a certain fix has worked for them, but I have been unable to apply these fixes because they were for earlier versions of PHPBB (i.e. 1.0.4).
I have been able to install PHPBB on localhost in the past, but not now. I currently have no working PHPBB installation.
Thanks for any help given.
I know this is outdated, however rather than suppressing the issue
If you want to properly fix this at the root of the problem,
Open up includes/utf/utf_tools.php
Go to ~line 1663
Replace
utf_normalizer::nfkc($text);
With
$utf_normalizer = new utf_normalizer();
$utf_normalizer->nfkc($text);
unset($utf_normalizer);
I'm still not sure why this hasn't been fixed in a proper release
go to your /includes folder and open up the startup.php
On line ~22 change the line
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
to
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
This may solve your problem =).
I run into a similar problem today after I updated to 3.0.12 and I think the proper solution is to make static all the functions in utf_normalizer.php instead of making non static all the calls to these functions.
BTW this is how it's done in phpbb 3.1.1

Mysql connect give Strict Standards error

when i try to connect mysql in Xamp that give me
Strict Standards: Declaration of DBAccessor::connect() should be compatible with that of mysqli::connect() in C:\xampp\htdocs\cgs\CGS\com\DBAccessor.class.php on line 237
database password, host and user were correctly enterd in my code
Is DBAccessor a class you wrote, or a part of some library/application.
If you wrote it, then you should know that when extending a base class (mysqli in this case) methods in extending class should have same signatures as methods in base class.
If you didn't write it: switch off E_STRICT error level
error_reporting(error_reporting() & ~E_STRICT);
Strict standards messages should not be displayed by PHP as they are disabled by default. Please edit your php.ini and change the error_reporting option to:
error_reporting = E_ALL & ~E_NOTICE
It's not related to MySQL credentials but to the way your PHP settings are.
If you do not have access to the php.ini file you can try to edit your htaccess file.

Categories