Support

Home Forums Event Espresso Premium EE thinks PHP installed is lower than required

EE thinks PHP installed is lower than required

Posted: October 6, 2016 at 12:21 pm

Viewing 34 reply threads


dkdc77

October 6, 2016 at 12:21 pm

Hi – I checked with my hosting company and PHP being run on the server is 5.6 but EE is saying that it is 5.4.43. I am experiencing a number of bugs (ical not working, calendar needing to be refreshed on browser before appearing, mobile calendar text not appearing etc) and I wonder if one of the core issues stems from this. Would really appreciate some assistance in how to fix this and other bugs.


Josh

  • Support Staff

October 6, 2016 at 12:46 pm

The bugs you’re seeing are more than likely the result of another plugin conflicting or a theme conflict.

You can verify the actual PHP version that’s running right now on your site by installing this plugin:

https://wordpress.org/plugins/health-check/


Tony

  • Support Staff

October 6, 2016 at 12:46 pm

Hi there,

Can you go to Event Espresso -> Maintenance -> System Information

Search for php_version on that page, you will likelt find 2 instances, what version number is reported there?

I am experiencing a number of bugs (ical not working, calendar needing to be refreshed on browser before appearing, mobile calendar text not appearing etc) and I wonder if one of the core issues stems from this.

We need further details to help with this, but its unlikely caused by the php version.

ical not working

What happens with the ical? Can you link us to one of the events where this isn’t working please.

refreshed on browser before appearing

We will need to view this too.

mobile calendar text not appearing

The calendar does not display text on mobile devices by default, you should see a ‘flag’ indicated an event is on that day. I’ll take a look as this with the above.


dkdc77

October 6, 2016 at 1:35 pm

PHP version is showing as [php_version] => 5.6.24
so not sure why i was getting that message. i have dismissed it. I also contacted the theme developer, so the calendar is showing up fine on desktop but not on mobile (links below for this).

Here is the link for iCal:
http://www.lakeburienpt.com/wp/events/restorative-yoga-9am/

clicking on the cal button gives the error on this page:
http://www.lakeburienpt.com/wp/?ee=download_ics_file&ics_id=92

Here is an example of the calendar to view on mobile. The event text is not appearing and all you see is a grey box for each event:
http://www.lakeburienpt.com/wellness/

if there is a way to show the text in mobile, please let me know.


Lorenzo Orlando Caum

  • Support Staff

October 7, 2016 at 3:44 am

Hello,

I followed the link that you shared and I was able to download the iCal files:

https://cl.ly/3H3b0f180B2o

https://cl.ly/12180Z3z3x1S

https://cl.ly/302H3v2V2z1U

Are you still having trouble downloading them when clicking on the calendar icon?


Lorenzo


Tony

  • Support Staff

October 7, 2016 at 3:51 am

PHP version is showing as [php_version] => 5.6.24
so not sure why i was getting that message. i have dismissed it.

It is a persistent notice meaning it remains until dismissed.

So if the PHP version was lower when EE was first activated it would trigger the notice, even after PHP had been updated it will remain shown until you click to dismiss.

Here is the link for iCal:
http://www.lakeburienpt.com/wp/events/restorative-yoga-9am/
clicking on the cal button gives the error on this page:
http://www.lakeburienpt.com/wp/?ee=download_ics_file&ics_id=92

Can you check with your host to see if the request is hitting a mod_sec rule they have set on the server, I’ve seen this happen previously with another host and it turned out to be an issue with their mod_sec rules.

Here is an example of the calendar to view on mobile. The event text is not appearing and all you see is a grey box for each event:
http://www.lakeburienpt.com/wellness/

The event title is hidden on smaller screens, take a look here:

https://eventespresso.com/topic/mobile-issue-no-text-when-viewing-in-mobile-devices/

There is CSS shown within that thread that will enable the event title but you likely find the text will need to be really small to fit in the elements.

You could change the background colour of the eventson smaller screens, would that work?


dkdc77

October 7, 2016 at 9:04 am

Hi Lorenzo – The ical doesn’t work on Chrome or Firefox (mac). It did work on safari.

Hi Tony – is there a way to show a different version of the calendar on small screens? To show maybe the event list instead?

thanks!


dkdc77

October 11, 2016 at 8:40 am

Hi Lorenzo and Tony – any news on the two issues remaining?


Lorenzo Orlando Caum

  • Support Staff

October 12, 2016 at 7:50 am

Hello,

Were you able to check into this suggestion by Tony?

Can you check with your host to see if the request is hitting a mod_sec rule they have set on the server, I’ve seen this happen previously with another host and it turned out to be an issue with their mod_sec rules.


Lorenzo


dkdc77

October 12, 2016 at 10:00 am

Hi Lorenzo

I spoke with the host and the tech said he doesn’t see any blacklist related to the plugin in the mod_sec rules. He called in a supervisor and they were unable to see anything in the system that would allow one browser to work and others not to work.

thanks


Josh

  • Support Staff

October 12, 2016 at 11:14 am

What you’ve reported here is very similar to what was reported in this stack exchange thread:

http://stackoverflow.com/questions/14167090/cant-download-generated-ics-file-in-chrome-or-firefox

Can you check with your host to see if any of the http headers are removed (this may happen if the site is served by a proxy), and if zlib.output_compression is disabled?


dkdc77

October 12, 2016 at 12:10 pm

Hi Josh

the tech says cache is off and there no compression, he also says he sees the http headers appearing with no interruption. he had me turn off all of the other plugins on the site and the error still appears.

i am using a sub-folder version of wordpress (everything is in a sub called WP/) if that is an issue.

i do have security where i can whitelist 404 files (through ithemes security). would that help? if so, what would i put here?


Josh

  • Support Staff

October 12, 2016 at 1:14 pm

It might help if you remove the iThemes security added .htaccess file rules if you’re using that plugin. Its rules will still apply even if the plugin is deactivated.


dkdc77

October 12, 2016 at 1:34 pm

do you mean to uncheck write access to .htaccess or to deactivate ithemes altogether?

i tried both and it still doesn’t work.


Josh

  • Support Staff

October 12, 2016 at 3:34 pm

I mean neither. Unchecking write access to .htaccess, when it’s already written to the .htaccess, will do nothing. Deactivating iThemes security, when it’s already written to the .htaccess, will not fix the issue if the problem is being caused by something in the .htaccess.

What will fix the problem (if caused by something in the .htaccess) will be removing the extra stuff that was put into the .htaccess file. Does that make sense?


dkdc77

October 12, 2016 at 5:12 pm

this is the code that is in the .htaccess file (btw i need the last three rewrite lines because the wp site is hidden while being developed…)

# Use PHPBETA Single php.ini as default
AddHandler application/x-httpd-phpbetas .php

# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
# END W3TC Browser Cache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?lakeburienpt.com$
RewriteRule ^(/)?$ lbpt [L]


Josh

  • Support Staff

October 13, 2016 at 8:14 am

You could try removing the W3TC Browser cache rules (or go into the W3TC plugin settings and disable the Browser cache feature, then double check to make sure the browser cache rules get removed). Then try the ical link again.


dkdc77

October 13, 2016 at 10:25 am

I had the hosting company clear the cache yesterday and it still didn’t work. i don’t have any cache plugins on the wp site – we did it from the host panel. and i just did it again now – problem still persists.

also – the same issue is happening if someone pays by invoice and wants to download their invoice…


Josh

  • Support Staff

October 13, 2016 at 11:18 am

Since you don’t have any caching plugins on your WP site, then you will need to remove these rules from the .htaccess file:

# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
# END W3TC Browser Cache


dkdc77

October 13, 2016 at 12:30 pm

k i did that, i cleared cache from the host server, waited a bit and it still isn’t working…


Josh

  • Support Staff

October 13, 2016 at 12:54 pm

Maybe you can try suggestion from the Stack Exchange thread. You edit the /wp-content/plugins/event-espresso-core-reg/modules/ical/EED_Ical.module.php
file, and right after line 171 you add the following:

header( 'HTTP/1.0 200 OK', true, 200 );

Then you save the file.


dkdc77

October 13, 2016 at 1:57 pm

that worked!!!!

so for the invoice, after i go to register and i click to view the invoice and want to download – can you tell me which file i should edit with that same code?


Josh

  • Support Staff

October 13, 2016 at 2:44 pm

I really can’t, but now that we know that sending the 200 response code helps, you can check with your host to see if something on your server is sending a 404 response code, or even check to see if that’s being caused by another plugin.


dkdc77

October 13, 2016 at 4:11 pm

the tech says he doesn’t see anything that would send a 404 response. there also doesn’t seem the be any conflict with plug-ins.

not being able to download the pdf invoice is the same issue as the ical – it works on safari, but not on chrome or firefox.

this is the invoice generated
http://www.lakeburienpt.com/wp?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=receipt&context=purchaser&token=1-ed9ba8bf993e41e598b003b43bcae370&GRP_ID=13&id=32

and clicking download, goes to this page
http://www.lakeburienpt.com/wp/?ee=msg_url_trigger&snd_msgr=pdf&gen_msgr=html&message_type=receipt&context=purchaser&token=1-ed9ba8bf993e41e598b003b43bcae370&GRP_ID=13&id=0

with this error
This site can’t be reached

The webpage at http://www.lakeburienpt.com/wp/?ee=msg_url_trigger&snd_msgr=pdf&gen_msgr=html&message_type=receipt&context=purchaser&token=1-ed9ba8bf993e41e598b003b43bcae370&GRP_ID=13&id=0 might be temporarily down or it may have moved permanently to a new web address.
ERR_INVALID_RESPONSE


Josh

  • Support Staff

October 14, 2016 at 5:38 am

The error when I try to download the PDF is slightly different than the error when the ical didn’t download. Can you share this stack exchange answer with your host’s support tech?

http://stackoverflow.com/a/34664532


dkdc77

October 14, 2016 at 11:17 am

I was on with the host for quite a bit and he didn’t see any logs that mod_sec was flagging. I sent him the stackoverflow link – they are not sure what the issue is, but they aren’t seeing anything on the server (and we were on for about an hour…) they turned off and on the plugins from the server as well and those are definitely not causing conflicts either.


dkdc77

October 14, 2016 at 11:26 am

Also – the tech suggested some other PDF generating plugins – not sure if that is feasible or not. Google Doc Embedder or Gravity Forms…


Josh

  • Support Staff

October 17, 2016 at 11:04 am

Your server techs should know how to find the logs. Once they find the logs they should be able to troubleshoot.


dkdc77

October 17, 2016 at 11:37 am

They did look at the logs – they could not find any errors


Josh

  • Support Staff

October 17, 2016 at 12:53 pm

So when you try to download the PDF, there’s a 404 response being sent, that’s not getting logged anywhere?

One thing they could check to see if there are any custom MIME types (or maybe the PDF MIME needs to be set for this server). Bluehost has a guide for this:

https://my.bluehost.com/cgi/help/create-mime-types


dkdc77

October 17, 2016 at 12:58 pm

k i checked and there is already a MIME type for PDF – it is part of the system – application/pdf


Josh

  • Support Staff

October 17, 2016 at 4:18 pm

You might also consider moving the site to another host since we’ve not seen these issues happen with other hosts.


dkdc77

October 18, 2016 at 11:51 am

unfortunately, i cannot change hosts at this time. i will hide that feature for now and hope we won’t need it.


Josh

  • Support Staff

October 19, 2016 at 8:55 am

In case you needed help with how to remove the download PDF button, all you would do is remove the [DISPLAY_PDF_BUTTON] from the Invoice template. They’ll still be able to view the Invoice HTML.


dkdc77

October 19, 2016 at 9:53 am

k i will do that for sure!

Viewing 34 reply threads

The support post ‘EE thinks PHP installed is lower than required’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso