Illegal Offset

Posted in: Newspaper
Post count: 10

Hello!

I just launched my site live and got this weird error message right at the top of the screen.
Need help!

Warning: Illegal string offset ‘limit’ in /storage/content/81/151281/thegadgetsite.com/public_html/wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_1.php on line 20

Find the site at thegadgetsite.com

Post count: 20688

Hi,

The error seems to be related to the big grid that is present on the page. But this big grid is displayed properly at this moment
https://www.screencast.com/t/U9PgKY2y
There is no error at the top of the screen from what I can see.

Thanks

Post count: 10

Hello!

I tried deleting and reinstalling the theme and it didn’t help.

However I realized the php version was too high. I set the version back to 7.0 and problem was alleviated.

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.

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