Do I needc to upgrade to solve this or is there another way?
Announcement
Collapse
No announcement yet.
Php upgrade causes 500 error in VB 5.2.2
Collapse
X
-
Please upgrade to 5.2.5 in the first instance.
-
Verify you are using mysqli (i at the end) in the database type -
Code:$config['Database']['dbtype'] = 'mysqli';
Comment
-
The max PHP version for VB 5.1.7 is below the minimum PHP version of VB 5,2,5. Make sure you have upgraded to at least PHP 5.6.x before upgrading. PHP 5.6.x will no longer work with the mysql version in the config.php gile. It must be changed to mysqli and you must ensure php is compiled with mysqli support.
Of course make a database backup before running the upgrade.php file.
Comment
-
None of this makes sense ...
Running php 5.6.x
Uploaded all files for 4.2.5
The forum is working but...
1. upgrade.php just gives the error:
"2: mysqli_real_connect() expects parameter 6 to be long, string given"
2. Delete the install directory and try to access Admincp and
Says "vBulletin 5.1.7 Admin Control Panel"
Does not accept my login either
So, if db is working, I must have mysqli enabled - that is not the issue
I do not see amy config.php file within core
Comment
-
Not true. Mysqli and mysql are not the same, which is why it won't move further.
Config.php is in core/includes
You may need to add the php library for mysqli as well.
If you run a PHP script with just phpinfo();
Then do a search for mysqli on the page with CTRL+F. You should see something like below:
mysqli
Client API library version mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $ Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off mysqli.rollback_on_cached_plink Off Off Last edited by Necrophyte; Sat 10th Dec '16, 11:19am.
Comment
-
config.php is in /core/includes/ directory.
Comment
-
Ok, we are not connecting here.
mysqli is configured in php. I knwo tyhgis because I recompiled and ALSO I have vb 5.2.5 running on another site on the same server.
The config.php does not have
Code:$config['Database']['dbtype'] = 'mysqli'; OR $config['MasterServer']['port'] = 3306;
Also it does not let me log into admincp. Doesn't say anything just reloads page
URL is .../loginerror=badlogin_strikes_logintypeemail&strikes=2&vb_login_username=Admin
PHP Version 5.6.28
fyi:Client API library version 5.5.52 Active Persistent Links Inactive Persistent Links Active Links Client API header version 5.5.52 MYSQLI_SOCKET /var/lib/mysql/mysql.sock mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off mysqli.rollback_on_cached_plink Off Off Last edited by frank47; Sat 10th Dec '16, 5:22pm.
Comment
Related Topics
Collapse
-
Hello Guys. I got this error,
2: mysqli_real_connect() expects parameter 6 to be long, string given
Can anyone please help. I have no problem in all other versions. This is my first...Wed 16th Nov '16, 8:28am -
The upgrade process (using the web version of the upgrader) has gotten stuck with the following error:
Code:Error No permissions on node id 28 on /[path_to_document_root]/core/vb5/route/channel .php
-
Channel: vBulletin 5 Installs & Upgrades
Wed 30th Sep '15, 2:58pm -
-
Hi there,
I want to upgrade vb 4.2.2 to vb 5.1.6
Upgrade starts and stops at 16% (step 142) with below error:
PHP Code:1Unexpected Text:
<?xml version="1.0" encoding="UTF-8"?>-
Channel: vBulletin 5 Installs & Upgrades
Thu 23rd Apr '15, 2:48am -
Comment