Jump to content

When trying to access my Catalog tab, I get "PHP Notice: Array to string conversion..."


bluebolt44

Recommended Posts

Hi all,

 

Hopefully this is something that is easy-ish to help with.

 

Our web hosting upgraded from Windows Server 2005 to 2008 yesterday and prestashop ceased to work, throwing out 500 errors.

We found out this was due to an issue with the database not migrating the password correctly and an SQL query solved the problem.

 

Once I could actually access the shop, it seems all ok but once I try to access the catalog tab to look at products, update, etc. I get nothing but the following message onscreen:

PHP Notice: Array to string conversion in ********\htdocs\prestashop\classes\AdminTab.php on line 190

See below a snippet of the offending code/file:

    public function __construct()
    {
        global $cookie;

        $this->id = Tab::getCurrentTabId();
        $this->_conf = array(
        1 => $this->l('Deletion successful'), 2 => $this->l('Selection successfully deleted'),
        3 => $this->l('Creation successful'), 4 => $this->l('Update successful'),
        5 => $this->l('Status update successful'), 6 => $this->l('Settings update successful'),
        7 => $this->l('Image successfully deleted'), 8 => $this->l('Module downloaded successfully'),
        9 => $this->l('Thumbnails successfully regenerated'), 10 => $this->l('Message sent to the customer'),
        11 => $this->l('Comment added'), 12 => $this->l('Module installed successfully'),
        13 => $this->l('Module uninstalled successfully'), 14 => $this->l('Language successfully copied'),
        15 => $this->l('Translations successfully added'), 16 => $this->l('Module transplanted successfully to hook'),
        17 => $this->l('Module removed successfully from hook'), 18 => $this->l('Upload successful'),
        19 => $this->l('Duplication completed successfully'), 20 => $this->l('Translation added successfully but the language has not been created'),
        21 => $this->l('Module reset successfully'), 22 => $this->l('Module deleted successfully'),
        23 => $this->l('Localization pack imported successfully'), 24 => $this->l('Refund Successful'),
        25 => $this->l('Images successfully moved'));
        if (!$this->identifier) $this->identifier = 'id_'.$this->table; //THIS IS LINE 190
        if (!$this->_defaultOrderBy) $this->_defaultOrderBy = $this->identifier;
        $className = get_class($this);
        if ($className == 'AdminCategories' OR $className == 'AdminProducts')
            $className = 'AdminCatalog';
        $this->token = Tools::getAdminToken($className.(int)$this->id.(int)$cookie->id_employee);

    }

I would very much appreciate any help.

 

Please let me know if I can provide any more information or anything else to help a speedy solution.

 

 

Kind regards.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...