Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 12 replies, has 2 voices.

Last updated by Alex 8 years, 1 month ago.

Assigned support staff: Bruno.

Author Posts
July 31, 2013 at 3:24 pm #150569

Alex

My apologies - I must have closed my previous thread by mistake.

Hi,

I have just installed WPML and everything is going smoothly except for an error I am getting on my wordpress admin pages. Here it is:

PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Illegal string offset 'custom' in H:webspacehostingsnumero3.eshostingwwwwp-contentthemesroom09corelibyitTypeTypesSelecticon.php on line 63 PHP Warning: Illegal string offset 'custom' in H:webspacehostingsnumero3.eshostingwwwwp-contentthemesroom09corelibyitTypeTypesSelecticon.php on line 63
PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: array_keys() expects parameter 1 to be array, boolean given in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487 PHP Warning: Invalid argument supplied for foreach() in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginssitepress-multilingual-cmsinctranslation-managementtranslation-management.class.php on line 3487

It is appearing at the bottom of all admin pages. Would you be so kind as to let me know what to do to fix it?

I just purchased WPML today so the version is 2.9.1

I am also getting the following error on my maintenance mode page:

PHP Warning: Creating default object from empty value in H:webspacehostingsnumero3.eshostingwwwwp-contentpluginswoocommerce-multilingualwoocommerce_wpml.class.php on line 651

The site is hidden link

Please let me know how I can fix this.

Regards!

July 31, 2013 at 7:45 pm #150685

Bruno

Dear Alex,

I’ll send you a private email right now asking you for some private information that will help me debug this issue for you. Please check your email in a couple of minutes, and if you don’t get it, let me know so I can send it again.

Thanks.

August 2, 2013 at 7:04 am #151228

Alex

Hi Bruno,

I sent you the email with the requested info. Would you happen to have an estimate as to when the issue could be resolved? Sorry to insist, but I am on a deadline for a client and I have been idle for the past two days which makes me a bit nervous.

Kind Regards.

August 2, 2013 at 2:59 pm #151391

Bruno

Dear Alex,

Please, open the wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php file, on line 3487, replace this line:

foreach(array_keys($arr) as $arrkey){

with this:

foreach(array_keys( (array)$arr ) as $arrkey){

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Thank you.

August 3, 2013 at 7:54 am #151537

Alex

Dear Bruno,

Thank you - I made the change and that fixed the large error above but now I am getting a shorter PHP error on the theme options page of the admin panel:

PHP Warning: Illegal string offset 'custom' in H:\webspace\hostings\numero3.es\hosting\www\wp-content\themes\room09\core\lib\yit\Type\Types\Selecticon.php on line 63 PHP Warning: Illegal string offset 'custom' in H:\webspace\hostings\numero3.es\hosting\www\wp-content\themes\room09\core\lib\yit\Type\Types\Selecticon.php on line 63

Thanks for your help!

Regards,

Alex

August 5, 2013 at 1:10 pm #151860

Bruno

Dear Alex,

This is a problem in the theme file. Please paste in pastebin.com the contents of the yitTypeTypesSelecticon.php file.

Thank you.

August 6, 2013 at 3:10 pm #152397

Alex

Hi Bruno,

Here it is: http://pastebin.com/RqjZHaYJ

Thanks!

August 6, 2013 at 6:07 pm #152440

Bruno

Dear Alex,

Please, on line 63, replace this:

$default = $value['std']['custom'] != '' ? $value['std']['custom'] : ucfirst( end( explode( '-', $value['std'] ) ) );

with this:

$default = $value['std']['custom'] != '' ? $value['std']['custom'] : ucfirst( end( explode( '-', $value['std']['custom'] ) ) );

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Thank you.

August 7, 2013 at 10:18 am #152649

Alex

Hi Bruno,

I made the change but still get this error:

PHP Warning: Illegal string offset 'custom' in H:\webspace\hostings\numero3.es\hosting\www\wp-content\themes\room09\core\lib\yit\Type\Types\Selecticon.php on line 63 PHP Warning: Illegal string offset 'custom' in H:\webspace\hostings\numero3.es\hosting\www\wp-content\themes\room09\core\lib\yit\Type\Types\Selecticon.php on line 63

Regards.

August 7, 2013 at 1:59 pm #152763

Bruno

Dear Alex,

Please, on line 63, try this one. Replace this:

$default = $value['std']['custom'] != '' ? $value['std']['custom'] : ucfirst( end( explode( '-', $value['std'] ) ) );

with:

$default = $value['std']['custom'] != '' ? $value['std']['custom'] : null;

I'm not sure if this will work as desired. However the developer of the theme should look.

Please let me know if this helps.

Thank you.

August 7, 2013 at 2:48 pm #152787

Alex

Hi Bruno - unfortunately the problem still persists. As you recommended, I have notified the theme's support team to see if they can help. The PHP errors showed up as soon as WPML was activated so let's see if they can shed some light on what may be happening. Do you think it is a critical error and I should stop development until it is resolved?

Regards,

Alex

August 7, 2013 at 7:22 pm #152882

Bruno

Dear Alex,

Please, try this one:

echo '<pre>';
print_r($value);
echo '</pre>';

This piece of code you must enter before this line:

$default = $value['std']['custom'] != '' ? $value['std']['custom'] : ucfirst( end( explode( '-', $value['std'] ) ) );

Eg:

echo '<pre>';
print_r($value);
echo '</pre>';

$default = $value['std']['custom'] != '' ? $value['std']['custom'] : ucfirst( end( explode( '-', $value['std'] ) ) );

See what is the answer of this variable to try to see what it can be.

Thank you.

August 8, 2013 at 8:42 am #152982

Alex

Hi Bruno,

The theme support team gave me a new selecticon.php file to replace and it appears to have removed the error warning. I will let you know if the problem returns. Again, thank you very much.