• Resolved briandreyer

    (@briandreyer)


    I upgraded my hosting to PHP 7, I’m running events manager version 5.9.5. I’m getting this error when viewing an event page:

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home1/mosaicha/public_html/db.php:7 Stack trace: #0 /home1/mosaicha/public_html/wp-content/themes/divi-child/single.php(8): include() #1 /home1/mosaicha/public_html/wp-includes/template-loader.php(77): include(‘/home1/mosaicha…’) #2 /home1/mosaicha/public_html/wp-blog-header.php(19): require_once(‘/home1/mosaicha…’) #3 /home1/mosaicha/public_html/index.php(17): require(‘/home1/mosaicha…’) #4 {main} thrown in /home1/mosaicha/public_html/db.php on line 7

    I rolled back PHP to 5.6 and that works fine with the plugin. Anyone else have similar issues and have a fix to use it with php7? (I’m using BlueHost if it helps).

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • timrv

    (@timrv)

    Hello,

    Based from the errors, It seems like they are not from Events Manager.

    What specific version of PHP 7 are you using? Could you perhaps try and use PHP 7.1?
    Are you also using the latest versions of WP?

    1. /home1/mosaicha/public_html/db.php
    – Not from EM and WP doesn’t have db.php on main folder

    2 /home1/mosaicha/public_html/wp-content/themes/divi-child/single.php(8): include() #1 /home1/mosaicha/public_html/wp-includes/template-loader.php(77): include(‘/home1/mosaicha…’) #2
    – This is from DIVI THEME

    3. /home1/mosaicha/public_html/wp-blog-header.php(19): require_once(‘/home1/mosaicha…’) #3 /home1/mosaicha/public_html/index.php(17): require(‘/home1/mosaicha…’) #4 {main} thrown in /home1/mosaicha/public_html/db.php on line 7
    – These are from WordPress Files

    What I would suggest is make sure you’re using Latest versions of WordPress and switch to PHP 7.1. After that start and switch to any twenty series theme. If there are still errors, Try and deactivate the plugins one by one until the error is gone.

    Thread Starter briandreyer

    (@briandreyer)

    Interestingly blue host only offers php7.0 so I may have to stick with php5.6 for a while.

    Thanks for the reply.

    Stonehenge Creations

    (@duisterdenhaag)

    I would really talk to Blue Host about that!
    5.6 is very old (released 08/28/2014). 7.0 was released on 12/03/2015.
    But even that is outdated already. 7.1 was released on 12/01/2016.

    Them offering only very outdated PHP is not something you would expect / should accept of a good hosting provider.

    Jing

    (@gujingc)

    We tried many hosts including Blue Host.

    I strongly recommend exploring other hosting solutions. 2 hosters I strongly recommend:

    1) Cloudways. That is someone we use now. They do not do advertising. They allow you to choose servers fro AWS, Digital Ocean, Google Cloud, Vulture and Linode. They at the same time provide 24/7 management service. Whenever you have issues, they are online to help you out.

    2) Hostiso. They do not advertise either. This is a team that understands WordPress and anything involving PHP inside out. We tried to move away to Siteground and Bluehost when using Siteground. Within days we begged to return. Each time, they helped us migrate back without any charge. We finally moved to Cloudways because it is even better and cheaper.

    We also tried InmotionHosting which is not bad at all.

    In comparison, Bluehost is not good at all in customer service. Nor is Siteground. Inmostionhosting and Hostiso will answer any of your tickets within 2 hours. Cloudways is a service in its own league. I would explore moving away instead of wasting time talking to Bluehost.

    Jing

    (@gujingc)

    With Cloudways, we are able to get the same performance and support with a 2GB server from Digital Ocean that runs our new site faster than the 8GB server InmotionHosting provided. The secret is Varnish Cache. We only pay $20 / month. Whenever there are issues, Cloudways team is online to answer 24/7. They auto back up for us everyday.

    Yes, I only need to pay $20/ month. If I switch to AWS, my cost would rise to a “whopping” $22. And the entire change could happen in Cloudways within about 15 minutes. A complete layman like me could complete such a migration and make it seamless to my users without any glitch.

    Hostiso always troubleshoot for us without any charge. So does InmotionHosting and Cloudways.

    Blue Host model is really outdated.

    Siteground brags about its Cache solution. But we found Cloudways offer so much more by charging so much less.

    Jing

    (@gujingc)

    In addition, Cloudways documentation is the most thorough I have ever seen. They even tell you how to resolve some rare issues caused by WP Rocket, CloudFlare or W3Total Cache with very detailed steps and carefully edited screenshots.

    If one day Events Manager could update its online documentation to be as good as Cloudways, I would not be surprised to see its active installation base double.

    We ran into some very rare issues. What saved us was the Cloudways team working closely with WPMU support desk. They staid late, and totally resolved our issue via online chat. My cost to obtain such service is a monthly $49 subscription to WPMU and a monthly $20 charge I pay to lease a Digital Ocean server managed by Cloudways. I now feel like having a full function server team on my staff. The ease of mind has never been greater.

    And yes, they are 24/7. Everything is done via live chat. Blue Host? Open a ticket. You will be lucky if they somehow look into it in 4-8 hours. Siteground? They promise someone will look into it for you. But don’t count on that promise to be serious.

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