ERROR IN COMPOSER PAGE AND POST

Posted in: Newspaper
Post count: 54

Warning: Illegal string offset ‘limit’ in /var/www/html/artenaserra.com.br/web/wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_9.php on line 20

Post count: 20688

Hi,

Please check your php version, the theme currently supports php up to version 7.1. This could be the cause for the issue. Also check the theme system status and make modifications to the parameters mentioned in this guide, if necessary
https://forum.tagdiv.com/system-status-parameters-guide/
You could ask your hosing provider to make them for you, as they might have a recommended method in this regard.
Lastly a theme re-install could be the solution, and test while having only the plugins included with the theme active
https://forum.tagdiv.com/install-via-ftp/

Thanks

Post count: 43

Does that include any 7.1.x version or only 7.1.0?

Post count: 43

Actually, it’s a bug in the code for all of the Big Grid classes where the ‘limit’ in $atts array is not being set.

line 20: $atts[‘limit’] = self::POST_LIMIT;

The code should be using an isset function to check if the ‘limit’ is set and if not then set it to 0.

Workaround: In the settings for your Big Grid, enter 0 for the value “Offset posts” and the warning will go away.

Post count: 20688

Hi,

Up to version 7.1 including. Newer PHP versions have not been tested. PHP support may change in future updates.
We have not had any other reports regarding the Big grids specifically. I will pass this informational along to the developer team. If there is anything wrong, it will be rectified as soon as possible.

Thanks

Post count: 43

Most people will never see the warning unless they have define(‘WP_DEBUG’, true); in wp-config and are using PHP 7.1.x.

Post count: 18

I’m getting the same warnings but I do have the debugger turned off…

define(‘WP_DEBUG’, false);

https://www.awesomescreenshot.com/image/2720568/01ac6aeeaa9c3ff19006718d11bdead5

but note that the workaround doesn’t work for me. Even if I set the post offset to 0, it persists.

  • This reply was modified 9 years by epicmag. Reason: Editing to include additional info about workaround solution not working in my case
Post count: 20688

Hi,

In some cases reinstalling the theme, or the composer also works
https://forum.tagdiv.com/install-via-ftp/
Or try lowering the PHP version of your server if possible and test. Use the latest version of the theme, as it is compatible and tested with version of PHP up to 7.1.

Thanks

Post count: 36

Just want to thank macksix for his solution provided earlier:

“Workaround: In the settings for your Big Grid, enter 0 for the value “Offset posts” and the warning will go away.”

You’re a lifesaver. Thank you!!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.