Strict Standards Error after upgrading from 2.5 - Joomla! Forum - community, help and support
ok attempted upgrade joomla 2.5.17 joomla 3 , after upgrading got blank screen. changed error reporting "default" "maximum" , error shows this:
strict standards: variables should assigned reference in .../plugins/system/joomesslibrary/joomesslibrary.php on line 96
i tried renaming file blank screen. not know enough php recognize problem. code around line 96 because i'm not sure if i'm supposed count spaces or not when counting lines figure out is:
class joomesslibrary {
public static $_jlib_version = "1.04";
public static $_jlib_extension_id = 6;
private $doc, $cache, $db;
private $js, $jscode, $css;
private $jquery, $plugins, $ready;
private $namespace;
public $cachefolder;
private $pars, $changedparams;
private $enabled;
private $langloaded;
private $headscripts, $_headstylesheets, $_headscript;
private function __construct() {
$this->doc =& jfactory::getdocument();
$this->db =& jfactory::getdbo();
$this->js = array();
$this->jscode = array();
$this->css = array();
$this->jquery = false;
$this->plugins = array();
$this->ready = array();
$this->langloaded = array();
$this->namespace = "jmquery";
$this->cachefolder = "cache/joomesslibrary";
$this->_headscripts = array();
$this->_headstylesheets = array();
$this->_headscript = array();
if(!$this->getparam("databaseinstalled", false)) {
$sql = "create table if not exists `#__joomess_library` (
`id` varchar(36) not null,
`files` text not null,
`created_date` datetime not null,
primary key (`id`)
) engine=innodb default charset=utf8;";
$this->db->setquery($sql);
your guy's appreciated. need fixed possible otherwise i'll have restore backup. thanks.
strict standards: variables should assigned reference in .../plugins/system/joomesslibrary/joomesslibrary.php on line 96
i tried renaming file blank screen. not know enough php recognize problem. code around line 96 because i'm not sure if i'm supposed count spaces or not when counting lines figure out is:
class joomesslibrary {
public static $_jlib_version = "1.04";
public static $_jlib_extension_id = 6;
private $doc, $cache, $db;
private $js, $jscode, $css;
private $jquery, $plugins, $ready;
private $namespace;
public $cachefolder;
private $pars, $changedparams;
private $enabled;
private $langloaded;
private $headscripts, $_headstylesheets, $_headscript;
private function __construct() {
$this->doc =& jfactory::getdocument();
$this->db =& jfactory::getdbo();
$this->js = array();
$this->jscode = array();
$this->css = array();
$this->jquery = false;
$this->plugins = array();
$this->ready = array();
$this->langloaded = array();
$this->namespace = "jmquery";
$this->cachefolder = "cache/joomesslibrary";
$this->_headscripts = array();
$this->_headstylesheets = array();
$this->_headscript = array();
if(!$this->getparam("databaseinstalled", false)) {
$sql = "create table if not exists `#__joomess_library` (
`id` varchar(36) not null,
`files` text not null,
`created_date` datetime not null,
primary key (`id`)
) engine=innodb default charset=utf8;";
$this->db->setquery($sql);
your guy's appreciated. need fixed possible otherwise i'll have restore backup. thanks.
the messages appears come jvotesystem extension joomla 2.5, written earlier version of php , therefore generates number of notices coding standards.
the strict standards message not actual php fatal error. can rid of messages if change error reporting option in global configuration simple or none, , extension may still work, not tested current versions of joomla , php.
basically, strict standards message tells incompatibility in how getdocument() method defined , how plugin code calls it. explaned in php manual: http://www.php.net/manual/en/language.r ... return.php
the strict standards message not actual php fatal error. can rid of messages if change error reporting option in global configuration simple or none, , extension may still work, not tested current versions of joomla , php.
yes, blank lines counted. if use editor notepad++ or vim, accurate line numbers. here line 96:i'm not sure if i'm supposed count spaces or not when counting lines
code: select all
$this->doc =& jfactory::getdocument();
basically, strict standards message tells incompatibility in how getdocument() method defined , how plugin code calls it. explaned in php manual: http://www.php.net/manual/en/language.r ... return.php
Comments
Post a Comment