Support » Plugin: Theme Switcha » Fatal error

  • Hi,

    I tried to install and activate the plugin but the following error occurred:

    Fatal error: Can’t use method return value in write context in /wp-content/plugins/theme-switcha/inc/plugin-core.php on line 227

    Any tips?

    • This topic was modified 4 years, 10 months ago by Jussi Linkola.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Thank you for bringing this to my attention. It is a bug that will be fixed in the next update. If you you are able to edit a file, you can make the change now: remove !empty() from lines 227 and 229 in /inc/plugin-core.php. Also which version of PHP are you using, if I may ask? Thanks

    Thread Starter Jussi Linkola

    (@callion)

    Thank you. I’ll fix the bug now so I can try the plugin, it seems very promising. My PHP version is 5.4.45.

    Plugin Author Jeff Starr

    (@specialk)

    Awesome let me know how it goes. I’m pretty sure that’s the issue, but will investigate further to resolve for the next update. Thanks for letting me know about the PHP version, it helps.

    • This reply was modified 4 years, 10 months ago by Jeff Starr.
    Thread Starter Jussi Linkola

    (@callion)

    The same error occured on lines 291, 293, 379 and 466 but after removing the !empty() from each line it seems to be working now. Thanks a lot!

    Plugin Author Jeff Starr

    (@specialk)

    Thanks for the follow-up. I’m gonna get this fixed up today and push out a new version. Should be available in the next couple of hours or so. Thanks again for reporting.

    Plugin Author Jeff Starr

    (@specialk)

    Now fixed in version 1.1

    Thread Starter Jussi Linkola

    (@callion)

    Beautiful, thank you for the quick support. I really like the functionality of this plugin, it’s way more handy than the one I was using before.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error’ is closed to new replies.