• Resolved McGrathLaw

    (@mcgrathlaw)


    Mike, thanks very much for your hard work on this. I’m fairly new to WP-Tiles and hoping to use it to reduce the text on our site and steamline navigation with Tiles. I’m also an amateur coder whose knowledge is rusty.

    I’m attempting, for now, to use text-only tiles to show pages. None of the options in Settings: WP-Tiles for color impact the color of my tiles, they are all showing the website’s default text color and default background. When I add in the color shortcode, like colors=’#FEF6EA’ it causes an error on that page and also (oddly) shows a repeated image which is from a recent post that isn’t included in the shortcode, etc.

    The error is Warning: strpos() expects parameter 1 to be string, array given in /home4/mspllc/public_html/mcgrathspielberger/wp-includes/shortcodes.php on line 382. This error does not appear unless I include the colors part of the code.

    The shortcode I’m using at this moment (on a test page) is [wp-tiles post_type=page id=7,9,11 text_only=yes colors=’#FEF6EA’]

    UPDATE – I decided to publish the test page so you can see it directly: http://mcgrathspielberger.com/test-firm-test-page

    I’m using Dynamik, a sub-theme of Catalyst Theme. I tried to locate this part of the .php (something I know very little about) but could not; where I thought I figured out it would be only had about 180 lines of code. Any assistance you can offer is very much appreciated. (I actually looked for a way to donate to you but did not see it, and also tried the “chat” function on Trenvo.com to ask about donating; it may be that I need to talk to you about doing some of this work / website redesign of McGrath & Spielberger instead of me trying to do it.)

    https://wordpress.org/plugins/wp-tiles/

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    Hi @mcgrathlaw,

    Thanks for your comment!

    It took some digging, but I found the culprit: because the color parameter was present, WP Tiles thought it had to convert an old style shortcode. Something went horribly wrong there, causing the errors you saw. The compatibility layer with the old version is slowly becoming a bit of dead weight for the plugin, which I hope to shed soon!

    I added the fix to the trunk version of WP Tiles, which you can download here: https://downloads.wordpress.org/plugin/wp-tiles.zip

    I just pushed out an update to WP Tiles yesterday, so I want to wait until there are some more tweaks before pushing out another version update (nobody likes plugins that update every day!).

    We are separated by quite a few time zones, so we were probably out of office when you tried to contact us via chat. Please send me an email at mike @ trenvo.com to get in touch!

    — Mike

Viewing 1 replies (of 1 total)
  • The topic ‘Colors-related problems including shortcodes.php error’ is closed to new replies.