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

  1. mAsT3RpEE
    Posted 2 years 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


  2. Max Bond
    Plugin Author

    Posted 2 years ago #

    Hello and thank you for the error report!

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

  3. mAsT3RpEE
    Posted 2 years ago #

    Thank you. People really like this widget.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Q2W3 Fixed Widget (Sticky Widget)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic