Hi Paul,
Thanks for letting me know about this! I made the mistake of passing the l10n directory as an absolute path, where WP expects a path relative to wp-content.
I fixed this on the develop branch on GitHub. Later this week I’ll release a minor WP Tiles update with some more bug fixes.
Thanks for reporting this!
Cheers,
Mike
Thanks for that, any idea when the update will be available?
Cheers
Paul
Hi Paul,
Yesterday’s update (v1.0.1) contains the patch. Let me know if that fixes the problem!
Cheers,
Mike
Hi Mike,
Thanks for the prompt reply!
With the patch activated I get the following errors when I try and view the home page:
PHP Warning: strpos() expects parameter 1 to be string, array given in D:\Plesk\VHOSTS\domain.com\httpdocs\wp-includes\shortcodes.php on line 382
PHP Warning: strpos() expects parameter 1 to be string, array given in D:\Plesk\VHOSTS\domain.com\httpdocs\wp-includes\shortcodes.php on line 189
PHP Warning: preg_split() expects parameter 2 to be string, array given in D:\Plesk\VHOSTS\domain.com\httpdocs\wp-includes\formatting.php on line 2070
Site displays normally when WP Tiles is deactivated.
PHP 5.3.29 and 5.4.37, WP debug off.
Any ideas?
Cheers
Paul
Hi Paul,
Sorry you’re getting warnings again now!
This happens when something is wrong with the query. I found this the other day when somebody combined a legacy shortcode with a new one. I will fix the plugin to not show errors and warnings when this happens.
What is your shortcode exactly? Also, did you upgrade from an older version of WP Tiles? Let know, then I can figure out what is happening!
Cheers,
Mike
Hi Mike,
The shortcode is: [wp-tiles template=”Banner”]
Is that a new or old shortcode?
I only built the site last year, so it’s not very old.
Cheers
Paul
Hi Paul,
That is the old shortcode, the syntax only came out of beta about a month ago. I left it in beta for over half a year to suss out problems with the compatibility layer for the old version. For some reason something in your setup has slipped through the cracks! The shortcode you posted should work with the new version, but it doesn’t.
Quite simply, the new syntax for this shortcode is:
[wp-tiles grids="Banner"]
Please double check the new ‘Grids’ interface in the admin section to make sure the Banner template did copy over!
Also check out the shortcode creator that has been added to the post editor. If you use that to rebuild your shortcode (even though this one is simple), you can be sure that the syntax is correct!
Sorry for the inconvenience!
Mike
Hi Mike,
That seems to have sorted it thanks!!
Great support by the way!
Cheers
Paul