PHP error - Post ID 231838

User 2147626 Photo


Ambassador
2,958 posts

Here is where I'm lost ... The form works at http://ecowebdesign.net/testform/request-quote.html but that site fails the sessions test! http://ecowebdesign.net/testform/gardner_denver/fbapp/php/servertest.php?sessiontest
http://gunsmoke.me/cloud/graphics/session2fail.png

And yet, the form that FAILS at http://www.airengineering.biz/testform/request-quote.html PASSES the sessions test! http://www.airengineering.biz/testform/gardner_denver/fbapp/php/servertest.php?sessiontest
http://gunsmoke.me/cloud/graphics/session1pass.png

Who is your host? What is your MAIN domain? Is airengineering.biz a sub-domain on your main domain? Is ecowebdesign.net your main domain, or is it also a sub-domain? Have you tried to create another site and see if it works, or if this is the ONLY one that does not? Let me know what you can. I'm sure, eventually, this should work. :P
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2471736 Photo


Registered User
39 posts

The host is Inmotion Hosting.

airengineering.biz and ecowebdesign.net are both cpanel main domains. I have tried many variations of the airenigeering.biz cpanel. Addon domain, sub domain, just sub folder, none work on this cpanel.

There is a problem with the php on the new cpanel. What is not working is beyond me. Something to do with a handler switch and my VPS I am assuming.

I have a half a dozen cpanels in this VPS and they all work when I upload this exact set of files to them.

Here's my suspicion.

I had a problem with a Joomla site and an extension throwing a similar error on a cpanel I created. So after the switch to DSO from SUPHP I believe there is a misconfiguration setting or module or whatever.

Here's the error I had with the Joomla extension. It was the same exact deal. I could clone the site to any other cpanel and it worked without any issues.
Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /home/owlt3x1/public_html/administrator/components/com_gcalendar/libraries/GCalendar/GCalendarZendHelper.php on line 255

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/owlt3x1/php') in /home/owlt3x1/public_html/administrator/components/com_gcalendar/libraries/GCalendar/GCalendarZendHelper.php on line 255

This bleeping no such file baloney. The files were there then too.

I do not understand the sessions working opposite of the forms working.
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.
User 2471736 Photo


Registered User
39 posts

I mean it's so similar to this one.

Warning: require_once(fbapp/inc/utilities.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/airengin/public_html/testform/gardner_denver/fbapp/php/formpage.cls.php on line 15

Fatal error: require_once() [function.require]: Failed opening required 'fbapp/inc/utilities.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/airengin/php') in /home/airengin/public_html/testform/gardner_denver/fbapp/php/formpage.cls.php on line 15
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.
User 2147626 Photo


Ambassador
2,958 posts

For lack of any other option I can think of, I'm back to my original thinking...

Upload your files and directories for the form to http://www.airengineering.biz/testform/ and not airengineering.biz/testform/gardner_denver/

See if that works.:P
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2471736 Photo


Registered User
39 posts

I'll give it a try, this is not how it's set on the working site though. Same exact files which is the part that makes no sense.

Thanks for all your help.
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.
User 2147626 Photo


Ambassador
2,958 posts

Oh, deep down (way deep down) I kind of like these little puzzles! :D
At least, when we can figure them out!! :/
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2471736 Photo


Registered User
39 posts

My hosting company switched the PHP handler back to SUPHP temporarily and informed me the form worked. They are not able to tell me why but at least it's a step in the right direction.

Strange part is other cpanels with these forms worked after the switch to DSO for the handler but the new cpanel created after the switch does not.

They are going to try and create the new cpanel with the handler back at SUPHP and then switch to DSO test. I will respond with the results. I really hope it's a matter of switching back to create new cpanels.

Thanks for all your help everyone!!
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.
User 2147626 Photo


Ambassador
2,958 posts

Okay, I think I'm catching up! Scary huh? Found an interesting article.. http://boomshadow.net/tech/php-handlers/
That contains this tidbit ..
*If you DO switch to either suPHP or FastCGI, you will need to update the file permissions and ownership. See my other article for automatic fixperms on cPanel servers: http://boomshadow.net/tech/fixes/fixperms-script/


Please do post back and let us know what you find to solve this problem. Thanks. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2471736 Photo


Registered User
39 posts

Well it's fixed. I had to go to paid support but they figured it out in a couple hours later. They must be the gurus.

It appears there is a customized include for that domain in the Virtual Host definition for the httpd.conf.

I commented out the following line in your Apache configuration and the script started working ::


Thanks for everyones help. It was making me mad as a hatter.
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.