UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 17th June 2008, 05:00 PM   #1 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
mysqli can not be found

Through no fault of my own UH have had to move all sites from a shared dedi to a reseller server in a bit of a rush. Our shared dedi was not yet upgraded to PHP5 but with the .htaccess trick I did have my sites running under PHP5.

I use the mysqli class for one of the sites, luckily only one of them, and now that its on the "keystone" server I'm getting errors that the mysqli class can not be found, is it not in the PHP5 that has been rolled out to all the servers?

I have asked UH support but I know that because of what happened this morning they have a lot to deal with, has anyone else got any ideas why i'm getting this error?

Thanks,

Simon
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Old 17th June 2008, 05:24 PM   #2 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
If it helps, the exact error message in the logs is

PHP Fatal error: Class 'mysqli' not found in /my/file.php on line 3

The line where it is used is

class myClassName extends mysqli {
// new functions
}
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Old 17th June 2008, 08:11 PM   #3 (permalink)
percepts
Senile Member
 
percepts's Avatar
 
Join Date: Mar 2005
Posts: 984
never used it but check your phpinfo for the following:


--with-mysqli=shared,/usr/bin/mysql_config

/etc/php.d/mysqli.ini

you should also have removed any htaccess for php5 stuff which could have screwed include paths. And check any other include_path settings that you may have overidden
__________________
An old dog learning new tricks
percepts is offline   Reply With Quote
Old 17th June 2008, 11:23 PM   #4 (permalink)
MrBen
Munky!
 
MrBen's Avatar
 
Join Date: Sep 2003
Location: nr Woking, England
Posts: 2,584
mysqli works OK for me on Delphin.

Does phpinfo() list MySQLi?

Ben
__________________
The impossible I can do today, miracles take a little longer

Veterinary Practice Management System by SoftFooding
Internet Data Usage Calculator: Estimate your monthly bandwidth usage for your Internet connection.
Little Red: Nordic Style Rye Bread
MrBen is offline   Reply With Quote
Old 18th June 2008, 07:22 PM   #5 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
All fixed by UH Support!

There was a problem with the include folder on the server which has since been fixed, I guess it affected all sites on the server, but I was the only one to use that class....
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 04:50 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309