• Resolved mmiyamoto715

    (@mmiyamoto715)


    I really want to use this plugin. It’s intuitive and gives great customization power over single post templates. I’m having a problem, however.

    When I activate the template I want to use in the “Options” menu, I get the following errors showing at the top of my browser:

    Warning: Illegal string offset ‘media_type’ in /homepages/13/d744808308/htdocs/clickandbuilds/MattyMiyamoto/wp-content/plugins/post-custom-templates-lite/include/classes/otw_pctl_dispatcher.class.php on line 152

    Warning: Cannot assign an empty string to a string offset in /homepages/13/d744808308/htdocs/clickandbuilds/MattyMiyamoto/wp-content/plugins/post-custom-templates-lite/include/classes/otw_pctl_dispatcher.class.php on line 152

    Since my site is live, I’ve had to disable the plugin and reverted to the theme’s original template file.

    Is this a theme issue or is it an incompatibility with WordPress 4.9.8? Let me know if you have any ideas on how to fix this issue when you get a chance.

    I’m currently using the Mega Blog theme.

    Thanks in advance,

    Matty

Viewing 5 replies - 1 through 5 (of 5 total)
  • babula

    (@babula)

    I’m having the same problem, i’m using oceanwp theme

    Same issue. Anyone else figure it out?

    Same here…
    Any solution?

    Having similar issue. About 5 of these generate in the error log EVERY MINUTE:
    PHP Warning: Cannot assign an empty string to a string offset in /home2/felicij6/public_html/wp-content/plugins/post-custom-templates-lite/include/views/components/related_posts.php on line 29
    PHP Warning: Illegal string offset ‘media_type’ in /home2/felicij6/public_html/wp-content/plugins/post-custom-templates-lite/include/views/components/related_posts.php on line 42

    Plugin Author OTWthemes

    (@otwthemes)

    Hi,

    these are not errors but warnings. You should disable them once your site is live:

    https://aristath.github.io/blog/wp-hide-php-errors

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error Messages at top of screen’ is closed to new replies.