Jump to content

Fatal error: Cannot use object of type PEAR_Error


kevinhtj

Recommended Posts

Getting the following error after doing a test relocation of a website to a new shared server.

 

 

Fatal error! Your request can not be executed!

Fatal error: Cannot use object of type PEAR_Error as array in /data/19/3/11/99/3011262/user/3343466/htdocs/HTJ/system/ext/I18N/LangData.php on line 66

 

checked the LangData file and here's the 'offending' code, from line 62-72

 

 

public static function createLangDataFromServer($lang_data)
{
$langData = new LangData();
 
                $langData->setID($lang_data['lang_id']);
$langData->setCaption($lang_data['name']);
$langData->setMeta($lang_data['meta']);
$langData->setErrorText($lang_data['error_text']);
 
return $langData;
}

 

 

Stumped as to what might be causing this.

 

Keep in mind he site was originally built on a Smarty php basis.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.