axelerant / testimonials-widget

Easily add social proofing to your website with Testimonials Widget. List or slide reviews via functions, shortcodes, or widgets.
http://wordpress.org/plugins/testimonials-widget/
GNU General Public License v2.0
10 stars 7 forks source link

Plugin deactivates itself at odd times #72

Closed michael-cannon closed 10 years ago

michael-cannon commented 10 years ago

Common thread is .htaccess enabled PHP5.3+. Seems Apache doesn't always deliver such.

Seems that we should only check system requirements on activation.

johnvanham commented 10 years ago

Can confirm this is happening where default PHP version on shared hosting is 5.2 but is configured in .htaccess to serve 5.4.

Added some debugging into includes/libraries/aihrus-framework after line 107 to send an email to me with the PHP version if it is less than 5.3 and I have had some emails and the version reported is 5.2! Any idea why Apache would do this? I have commented out the deactivation temporarily.

johnvanham commented 10 years ago

Have run a script that tests PHP version several times per second and run it overnight. It consistently reports 5.4 and does not ever report 5.2. Could it be possible that something in the framework or Wordpress is causing the server to load PHP 5.2 somehow? A standalone PHP script doesn't seem to be affected on the same site while this plugin is.

michael-cannon commented 10 years ago

No idea really, the requirements checking runs every load. In hindsight, it only needs to run on activation or update. I'll modify code to such a case.

michael-cannon commented 10 years ago

Duplicate of #45. Resolving there instead.