Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
nextgen
Worker
Worker



Joined: Sep 28, 2006
Posts: 228
Location: Maryland

PostPosted: Fri May 11, 2012 3:17 pm Reply with quote

I moved to a new server and tried to install 2.5 with error reporting on and the install went flawlessly. When i try to go to my site after a good install and zero errors i get the following error.

Code:
Fatal error: Class 'mysqli' not found in /home/alteredn/public_html/db/mysqli.php on line 41


I contacted my host and the following is installed.

mysql 5.1.56
PHP 5.2.17

The also assured me that mysqli is installed and activated on the server so i am at a loss. I did install a test file for the php info and did not see any reference to mysqli being installed at all.

I should see it in the php info correct ?

_________________
alterednuke.com Your source for Ravennuke themes. 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat May 12, 2012 8:30 am Reply with quote

try this code in a file:
Code:


if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
    echo 'We don\'t have mysqli!!!';
} else {
    echo 'Phew we have it!';
}


You should also have a section in phpinfo() that looks something like this.

Image

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
CodyG
Life Cycles Becoming CPU Cycles



Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island

PostPosted: Tue May 22, 2012 12:46 pm Reply with quote

I just finished a fresh install of rn 2.5 and I'm getting the same above error after successfully completing setup.php.
Fatal error: Class 'mysqli' not found in /home/*****/public_html/db/mysqli.php on line 41

phpinfo() shows no mysqli table, only mysql.
I have several other RN sites on this server, all running rn2.4 and they work just great. What's up with mysqli and RN 2.5?

Thanks for the new ver! and thanks for the help.
Cody
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue May 22, 2012 1:20 pm Reply with quote

If you are running a current version of php, 5.1+, it should have mysqli enabled. If not, have your host compile php with mysqli. Mysqli has several benefits over mysql. Support for an object-oriented interface, prepared statements, multiple statements and several other improvements.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
CodyG







PostPosted: Tue May 22, 2012 9:24 pm Reply with quote

I'm running php ver 5.3+. I'll look into the upgrade, thanks.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©