MyBB Community Forums

Full Version: How to change from php v4 to php v5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I'm sure this has been covered before, but I cannot search for php as it's only 3 letters Toungue

How do I change my forum to use php5, as my host is discontinuing php4?

Thanks
Colin
I believe MyBB will happily start using PHP 5 without any changes being made.

Glad to see hosts are finally getting off PHP 4. Smile
I wish it did, but on changing to php5, I was met with lovely errors on the forum.
Ahhhh, ok. I see it's the ad rotation manager plugin causing the problems...
What were they?? I don't think there's anything in any files which stipulate the PHP version...
Here you go..

The following warnings occurred:
Warning [2] mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 27 - Line: 437 - File: inc/db_mysql.php PHP 5.2.0-8+etch15 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/db_mysql.php 437 mysql_result
/inc/plugins/ads.php 88 DB_MySQL->fetch_field
[PHP] ads_globals
/inc/class_plugins.php 101 call_user_func_array
/global.php 95 pluginSystem->run_hooks
/index.php 18 require_once
Warning [2] mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 29 - Line: 437 - File: inc/db_mysql.php PHP 5.2.0-8+etch15 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/db_mysql.php 437 mysql_result
/inc/plugins/ads.php 96 DB_MySQL->fetch_field
[PHP] ads_globals
/inc/class_plugins.php 101 call_user_func_array
/global.php 95 pluginSystem->run_hooks
/index.php 18 require_once
Warning [2] mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 29 - Line: 437 - File: inc/db_mysql.php PHP 5.2.0-8+etch15 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/db_mysql.php 437 mysql_result
/inc/plugins/ads.php 97 DB_MySQL->fetch_field
[PHP] ads_globals
/inc/class_plugins.php 101 call_user_func_array
/global.php 95 pluginSystem->run_hooks
/index.php 18 require_once
Warning [2] mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 29 - Line: 437 - File: inc/db_mysql.php PHP 5.2.0-8+etch15 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/db_mysql.php 437 mysql_result
/inc/plugins/ads.php 98 DB_MySQL->fetch_field
[PHP] ads_globals
/inc/class_plugins.php 101 call_user_func_array
/global.php 95 pluginSystem->run_hooks
/index.php 18 require_once
Warning [2] mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 29 - Line: 437 - File: inc/db_mysql.php PHP 5.2.0-8+etch15 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/db_mysql.php 437 mysql_result
/inc/plugins/ads.php 99 DB_MySQL->fetch_field
[PHP] ads_globals
/inc/class_plugins.php 101 call_user_func_array
/global.php 95 pluginSystem->run_hooks
/index.php 18 require_once
Warning [2] mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 29 - Line: 437 - File: inc/db_mysql.php PHP 5.2.0-8+etch15 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/db_mysql.php 437 mysql_result
/inc/plugins/ads.php 100 DB_MySQL->fetch_field
[PHP] ads_globals
/inc/class_plugins.php 101 call_user_func_array
/global.php 95 pluginSystem->run_hooks
/index.php 18 require_once
Quote:/inc/plugins/ads.php
^ There's your problem.
Try disabling the plugin.
Also see if php5 has mysqli extensions and if so change config.php to use mysqli instead of mysql. You will see performance difference imho.