WordPress.org

Ready to get started?Download WordPress

Forums

Q2W3 Fixed Widget (Sticky Widget)
[resolved] Breakes With PHP 5.3 (3 posts)

  1. mAsT3RpEE
    Member
    Posted 1 year ago #

    Dear Sir,

    I am a web developer / designer / programmer who always has to fix your plugin every time it updates (my clients really like it). I always get the error

    fatal error: php cannot re-declare class mobile detect ...

    I'm not trying to be a nuisance but will your code break if you include the class outside of a function that might be called twice thus breaking php. Or perhaps (and this is what I do) change the require line from require to require_once.

    The code I'm talking about is in q2w3-fixed-widget.php line 161:
    require 'q2w3-mobile-detect.php';

    Thank you

    http://wordpress.org/extend/plugins/q2w3-fixed-widget/

  2. Max Bond
    Member
    Plugin Author

    Posted 1 year ago #

    Hello and thank you for the error report!

    In version 2.2.2 mobile-detect class will be loaded only once.

  3. mAsT3RpEE
    Member
    Posted 1 year ago #

    Thank you. People really like this widget.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags