PDA

View Full Version : Upgrade from 4.1.7 to 4.2.2 results in VBSEO error


HighFlow.nl
12-16-2014, 08:51 AM
We have upgraded vbulletin from 4.1.7 to 4.2.2 today.

Getting this error message right after installation:
Non-static method vBSEO_Storage::path() should not be called statically in

In functions_vbseo_pre.php we changed:
from: function path($type = '')
to: static function path($type = '')
Also tried: public static function path($type = '')

With both modifications we don't get the error message anymore, just a blank page.
(internal server error 500)

What can be the solution?
Hope we can get our forum up and running again.

Thanks in advance.

Brandon Sheley
12-16-2014, 09:03 AM
What do you mean "both modifications"??

http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-installations-and-upgrades/4000162-mktime-errors-after-4-2-2-upgrade-php-5-4-17

The blank page likely means you saved something wrong in the php file.
Only try changing this.

To fix the error with VBSEO you need to:

1) edit /vbseo/includes/functions_vbseo-pre.php
2) on line 181 find: function path($type = '')
3) replace with: public static function path($type = '')
4) save file.

Done

HighFlow.nl
12-16-2014, 10:22 AM
Thanks for your reply.

I mean I tried the code once at the time.
I found that topic also and followed the instructions.
Replaced it with the code in "3)".
The error message is then not shown, but only a blank page.

Then I found this topic:
https://vborg.vbsupport.ru/showpost.php?p=2523921&postcount=26
So I replaced the function path with: static function path($type = '')

With that also no luck and only blank page.

Can we try anything else?

ozzy47
12-16-2014, 10:23 AM
Ditch vBSEO and go with [DBTech] DragonByte SEO v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=308615)

Dave
12-16-2014, 10:24 AM
Since it's returning an internal server error, could you check the error logs of your web-server/PHP cgi?

HighFlow.nl
12-16-2014, 10:35 AM
Ditch vBSEO and go with [DBTech] DragonByte SEO v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=308615)

Yes I was thinking so too, but we have to be able to get into the adminCP first and we cannot with this error :(

Since it's returning an internal server error, could you check the error logs of your web-server/PHP cgi?

E-mail is send to our server administrator, waiting for the reply of what's in the log.

ozzy47
12-16-2014, 10:44 AM
Ok lets do this, disable plugins via the includes/config.php file.

To do that open your includes/config.php file and below <?php add the following.

define('DISABLE_HOOKS', true);

So it looks like this:
<?php
define('DISABLE_HOOKS', true);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ (http://notepad-plus-plus.org/download/v6.6.8.html) to edit any files, don't use Notepad or Wordpad.

HighFlow.nl
12-16-2014, 11:01 AM
Thanks!
Done it, I can access my admin panel again.

Logged in and disabled VBSEO plugin.

Removed the "DISABLE_HOOKS" from config.php.

Problem is still there :(

ozzy47
12-16-2014, 11:03 AM
I would disable hooks again, then look into getting the pro version of DBSEO, and switching, as the pro version has a importer from vBSEO to DBSEO.

HighFlow.nl
12-16-2014, 11:52 AM
Tried it, installed DBSEO while hooks disabled.
But can't go to CP of DBSEO, url/dbseocp/ just shows a blank page.
So can't go import vBSEO settings.

When hooks enabled, the first problem again: AdminCP is not available at all.

Any other ideas?

HM666
12-16-2014, 06:01 PM
Tried it, installed DBSEO while hooks disabled.
But can't go to CP of DBSEO, url/dbseocp/ just shows a blank page.
So can't go import vBSEO settings.

When hooks enabled, the first problem again: AdminCP is not available at all.

Any other ideas?


Have you tried to uninstall vBSEO when you are able to get into the AdminCP? If the plugins are disabled I think you can still uninstall vBSEO. If memory serves me well I've done that in the past. The only way you can probably install DBSEO is to uninstall vBSEO first completely. If you are having problems uninstalling vBSEO check out my post here: https://vborg.vbsupport.ru/showpost.php?p=2527523&postcount=29 i answered you and one other fella there.

ozzy47
12-16-2014, 09:27 PM
But if you uninstall vBSEO, how do you import the settings and such into DBSEO?

HM666
12-16-2014, 09:37 PM
But if you uninstall vBSEO, how do you import the settings and such into DBSEO?

Answered in the other thread :) Two threads is too much to keep up with lol.