PDA

View Full Version : Upgrading from 4.2.3 to 4.2.5


Cody.9791
06-30-2017, 12:11 PM
What steps do I need to take to upgrade from 4.2.3 Patch Level 2 to the newest 4.2.5? Is it worth the upgrade?

I've already did a complete backup of the home directory and database.

Thanks in advance!

Dave
06-30-2017, 01:29 PM
1. Backup everything.
2. Overwrite current files with new files.
3. Go to /install/upgrade.php and follow steps.

It's definitely worth the upgrade, I recommend to use PHP 7 for a significant performance boost.

Mattwhf
06-30-2017, 02:08 PM
It is worth if you want to use PHP 7 for vB 4.
The choice is yours and just some minutes you can upgrade to 4.2.5

tbellik
01-12-2019, 06:10 PM
Anyone here ?
I will upgrade my site from 4.2.3 ?to 4.2.5 but I have worry about my plugin and postbits.

If I say overwrite all of them, isnt delete my plugin and postbit and some changes in css or my theme

MarkFL
01-12-2019, 07:25 PM
Anyone here ?
I will upgrade my site from 4.2.3 ?to 4.2.5 but I have worry about my plugin and postbits.

If I say overwrite all of them, isnt delete my plugin and postbit and some changes in css or my theme

Your installed products/plugins will not be overwritten or deleted, and any customized templates will also not be overwritten. You will simply be warned that they may be out of date. I left my customized templates as they were with no bad effects.

With vB 4.2.5, you will no longer have the option to use cookie based thread read marking, but the database marking is vastly superior in my opinion and I was using it for years anyway.

Upgrading from 4.2.3 to 4.2.5 should go smoothly. Of course, be sure to backup your site first.

tbellik
01-12-2019, 08:11 PM
Your installed products/plugins will not be overwritten or deleted, and any customized templates will also not be overwritten. You will simply be warned that they may be out of date. I left my customized templates as they were with no bad effects.

With vB 4.2.5, you will no longer have the option to use cookie based thread read marking, but the database marking is vastly superior in my opinion and I was using it for years anyway.

Upgrading from 4.2.3 to 4.2.5 should go smoothly. Of course, be sure to backup your site first.

Full backup or sql backup is enough for me ?
Thanks for your advance.

--------------- Added 1547333998 at 1547333998 ---------------

Also when I start upgrade, the php version is important ?

My php version is 5.4 now.

Which version should I choose??

snakes1100
01-12-2019, 09:16 PM
You can use up to 7.1 for vbulletin itself running 4.2.5

7.1 may break a addon/product test after implementing 7.1 to verify you have no errors, you may be able to disable display_errors if any warnings popup though

5.6 should be fine for any addon currently made for 4.2.5, BUT 5.6 is EOL, so id at least run 7.0

tbellik
01-13-2019, 04:25 AM
You can use up to 7.1 for vbulletin itself running 4.2.5

7.1 may break a addon/product test after implementing 7.1 to verify you have no errors, you may be able to disable display_errors if any warnings popup though

5.6 should be fine for any addon currently made for 4.2.5, BUT 5.6 is EOL, so id at least run 7.0

I will try it, hope everythings will work.
Latest question, my root directory backup is more than 40 gb. Because there is picture upload script inside and lots of picture.

So only sql backup enougf for me, if cant make it, possible ro recovery my forum?

snakes1100
01-13-2019, 03:06 PM
Back up the home dir with tar/gzip etc

Images wont be removed because you're upgrading vbulletin.

tbellik
01-13-2019, 03:29 PM
Dear snakes, I owerwrite files and folders but when I want to start upgrade.php, it gives an error

500 Error. Internal Server Error.

Any way for solution?

iA1
01-13-2019, 03:41 PM
Check your server logs for php errors.

tbellik
01-13-2019, 03:43 PM
Check your server logs for php errors.

Where can I find logs ?

iA1
01-13-2019, 03:46 PM
Do you use cpanel or plesk? Do you have root access to your server?

tbellik
01-13-2019, 03:47 PM
Check your server logs for php errors.

Inside the error log in includes.


[05-Jun-2017 09:35:10 America/Chicago] PHP Warning: require_once(./includes/functions_navigation.php): failed to open stream: No such file or directory in /home4/omega/public_html/includes/functions.php on line 40


[05-Jun-2017 09:35:10 America/Chicago] PHP Fatal error: require_once(): Failed opening required './includes/functions_navigation.php' (include_path='.:/opt/php54/lib/php') in /home4/omega/public_html/includes/functions.php on line 40

--------------- Added 1547401687 at 1547401687 ---------------

Do you use cpanel or plesk? Do you have root access to your server?


I have cpanel, and I have access my roort right now.

iA1
01-13-2019, 03:52 PM
It could be due to a plugin. Disable plugins using config.php or from admincp and run upgrade again.

--------------- Added 1547402289 at 1547402289 ---------------

Make sure you have uploaded all vbulletin files properly.
./includes/functions_navigation.php is part of vbulletin and your error says it is missing.

tbellik
01-13-2019, 04:16 PM
It could be due to a plugin. Disable plugins using config.php or from admincp and run upgrade again.

--------------- Added 1547402289 at 1547402289 ---------------

Make sure you have uploaded all vbulletin files properly.
./includes/functions_navigation.php is part of vbulletin and your error says it is missing.

it was giving error below.

Parse error: syntax error, unexpected '*' in /home4/omega/public_html/includes/functions.php on line 1576

--------------- Added 1547403423 at 1547403423 ---------------

It could be due to a plugin. Disable plugins using config.php or from admincp and run upgrade again.

--------------- Added 1547402289 at 1547402289 ---------------

Make sure you have uploaded all vbulletin files properly.
./includes/functions_navigation.php is part of vbulletin and your error says it is missing.


I uploaded all my files from members.vbulletin.com

iA1
01-13-2019, 04:25 PM
Line 1576 in functions.php is:
if (intval($profilefield_value) & (2**$key))

Edit: make sure your php version is at least 5.6 or higher.

tbellik
01-13-2019, 04:32 PM
Line 1576 in functions.php is:
if (intval($profilefield_value) & (2**$key))

I am not sure whether the double ** is a typo or not. I think you should open a support ticket at vbulletin.com

If they say it is a typo then delete the extra * and it should work.

I have not upgraded from a previous version to vB 4.2.5, but I run a new installation of vB 4.2.5 on my forum and it works fine without any issues.



When I changed php version from 5.4 to 7 or 7.1 It gives this is en error



Unexpected Text:
<?xml version="1.0" encoding="windows-1252"?>
<?xml version="1.0" encoding="windows-1252"?>
<errors>
<error><![CDATA[<p>Database Error</p>

Invalid SQL:

SELECT bt.userid, bt.dateline, blogtextid, ipaddress, firstblogtextid
FROM blog_text bt
JOIN blog bl USING (blogid)
LEFT JOIN ipdata ip ON (
bt.ipaddress = ip.ipid AND bt.blogtextid = ip.contentid
AND bt.userid = ip.userid AND ip.contenttypeid IN (, )
)
WHERE ipid IS NULL;

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )
)
WHERE ipid IS NULL' at line 6]]></error>
<error_html><![CDATA[<p>Database error in vBulletin 4.2.5</p>
<p>Invalid SQL:

SELECT bt.userid, bt.dateline, blogtextid, ipaddress, firstblogtextid
FROM blog_text bt
JOIN blog bl USING (blogid)
LEFT JOIN ipdata ip ON (
bt.ipaddress = ip.ipid AND bt.blogtextid = ip.contentid
AND bt.userid = ip.userid AND ip.contenttypeid IN (, )
)
WHERE ipid IS NULL;<p>
<p>
<strong>MySQL Error</strong> : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' )
)
WHERE ipid IS NULL' at line 6<br />
<strong>Error Number</strong> : 1064<br />
<strong>Request Date</strong> : Sunday, January 13th 2019 @ 12:30:41 PM<br />
<strong>Error Date</strong> : Sunday, January 13th 2019 @ 12:30:42 PM<br />
<strong>Script</strong> : http://www.defineyolu.com/install/upgrade.php<br />
<strong>Referrer</strong> : https://www.defineyolu.com/install/upgrade.php<br />
<strong>Classname</strong> : vB_Database_MySQLi<br />
<strong>MySQL Version</strong> : 5.6.41-84.1<br />
</p>]]></error_html>
</errors>

snakes1100
01-13-2019, 04:47 PM
To upgrade as it appears you have the Suite, the blog & cms have to be enabled to upgrade, if they are disabled it will fail.

Add this on the 2nd line of config.php:

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING);

tbellik
01-13-2019, 04:53 PM
To upgrade as it appears you have the Suite, the blog & cms have to be enabled to upgrade, if they are disabled it will fail.

Add this on the 2nd line of config.php:

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING);

Thats respond

Warning: require_once(./install/includes/language.php): failed to open stream: No such file or directory in /home4/omega/public_html/installl/upgrade.php on line 25

Fatal error: require_once(): Failed opening required './install/includes/language.php' (include_path='.:/opt/php71/lib/php') in /home4/omega/public_html/installl/upgrade.php on line 25

--------------- Added 1547405771 at 1547405771 ---------------

Also I didnot complete it but my forum looking updated, is it normal ?

https://i.hizliresim.com/zjaRQO.png

iA1
01-13-2019, 04:59 PM
Thats respond

Warning: require_once(./install/includes/language.php): failed to open stream: No such file or directory in /home4/omega/public_html/installl/upgrade.php on line 25

Fatal error: require_once(): Failed opening required './install/includes/language.php' (include_path='.:/opt/php71/lib/php') in /home4/omega/public_html/installl/upgrade.php on line 25

]

Did you change install folder name to installl? Change it back to install to complete the upgrade.

tbellik
01-13-2019, 05:09 PM
Did you change install folder name to installl? Change it back to install to complete the upgrade.

I changed but again I make orginal folder name.

When I start upgrade.php it gives an error.

https://vborg.vbsupport.ru/

I dont have orginally english language. Is that be problem ?

snakes1100
01-13-2019, 10:35 PM
It gives which error after renaming it back to "install" default name?

tbellik
01-14-2019, 03:40 AM
It gives which error after renaming it back to "install" default name?

It is same problem.

gives an error 18/30 buttom.

https://vborg.vbsupport.ru/external/2019/01/3.png

snakes1100
01-14-2019, 08:22 AM
As i said previously, the blogs & cms have to be enabled to upgrade.

tbellik
01-14-2019, 08:45 AM
As i said previously, the blogs & cms have to be enabled to upgrade.

How can I enable these setings ?

snakes1100
01-15-2019, 09:57 PM
product manager in the admincp