View Full Version : Old vB Plugin on PHP7
Calahan
11-18-2018, 09:05 PM
Hello
I`m still using an old plugin which is only working under PHP5.
I?m talking about vB Easy Archive
https://vbulletin.org/forum/showthread.php?t=83439
Is there a chance to get it working on PHP7?
motd2
11-20-2018, 01:40 AM
what error do you get?
Calahan
11-20-2018, 10:46 PM
I can see the forumhome
This works
But if a klick on a thread I see a blank page
motd2
11-21-2018, 12:10 AM
What is in your error_logs (if you don't know where they are, ask your host)?
Calahan
11-28-2018, 06:39 PM
It shows me the following error
[php7:emerg] [pid 8371] [client 89.11.121.64:0] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /home/admin/domains/public_html/archiv/topic on line 67, referer: http://www.domain.com/archiv/forum/2-1.html
snakes1100
11-28-2018, 06:47 PM
Edit the file/plugin and change:
=& new
to
= new
Calahan
11-29-2018, 08:10 PM
Perfect :D:D
Thanks a million :up:
snakes1100
11-29-2018, 08:12 PM
Welcome
Emad ELsayed
01-20-2019, 03:09 PM
Edit the file/plugin and change:
=& new
to
= new
my dear
Could you help me solve this error with one product.
The product works superbly with php 5.6 but does not work with php 7.2
PHP Fatal error: Call to undefined function split() on line 3 in /home/hier/public_html/newthread.php(151) : eval()'d code(13) : eval()'d code
in /home/hier/public_html/vb/vb.php on line 286
Product in attachments
snakes1100
01-20-2019, 04:25 PM
Sorry i can't, this is a completely different issue, you would need a lot more code changing to make that hack work with php 7.2, i would suggest posting for a paid job.
Emad ELsayed
01-20-2019, 04:42 PM
Sorry i can't, this is a completely different issue, you would need a lot more code changing to make that hack work with php 7.2, i would suggest posting for a paid job.
Thank you dear
I am now using 5.6 but I want to update it.
Thank you for your help
motd2
01-20-2019, 07:13 PM
Contact the author of this mod. He has code encrypted there. Write to him to replace split() with explode().
Emad ELsayed
01-20-2019, 07:18 PM
Contact the author of this mod. He has code encrypted there. Write to him to replace split() with explode().
Unfortunately the product programmer completely disappeared.
There is no means of communicating with him.
Calahan
10-29-2020, 02:59 PM
I got an new problem :rolleyes:
I changed my server and the plugin is working so far.
But when I click on link
the Browser starts to download an .html file
instead of rewriting the php site into a html.
Any ideas?
Dr.CustUmz
10-29-2020, 06:55 PM
attach the product and I will take a look at it.
Calahan
10-29-2020, 11:02 PM
Here are the plugin files
Dr.CustUmz
10-29-2020, 11:16 PM
I wasn't able to duplicate this error, although I may have a fix.
In forum
Change:
$DB_site = &$vbulletin->db;
To:
$DB_site = $vbulletin->db;
let me know if this resolves this
Calahan
10-30-2020, 07:47 AM
Hello
Thanks for the fast help but it didn't change anything.
Could it be that the htaccess has to changed?
Calahan
11-02-2020, 05:43 AM
I'm using Fpm-fcgi on my new server.
May this be the reasons why the .php files aren't rewritten into .html?
Calahan
08-18-2021, 07:46 AM
Maybe some can help me again.
I had to change to a server with litespeed.
I can see the main page of the archive.
But when I click on a futher link I get a 404 error.
Any ideas why it doesn't work with litespeed?
Thanks
the error log
[ERROR] [18257] [185.60.100.100:35232] URI '/archiv/forum/123-2.html' refers to a static file with PATH_INFO [/123-2.html].
TheLastSuperman
08-31-2021, 09:29 PM
Maybe some can help me again.
I had to change to a server with litespeed.
I can see the main page of the archive.
But when I click on a futher link I get a 404 error.
Any ideas why it doesn't work with litespeed?
Thanks
the error log
[ERROR] [18257] [185.60.100.100:35232] URI '/archiv/forum/123-2.html' refers to a static file with PATH_INFO [/123-2.html].
Are you also using a script to rewrite the URL's by chance? Reference:
https://serverfault.com/questions/1075981/vbulletin-script-problems-litespeed
If so, it would depend on exactly what script you're referring to, and depending upon your answer may require something along the lines of:
https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/
You could add some custom rewrites to your .htaccess file, although that would take some tinkering and testing, and usually a script is required to do the rather complex rewrites (think autopilot and variables versus tons of manual rewrite entries, you want it automatically recognize new thread and post urls and display them accordingly). Side Note: Some major hosting platforms like WPEngine (specifically for WordPress sites) are no longer allowing .htaccess use starting with PHP7.4, while this doesn't apply to you it may at some point in time in the future, when other major hosting platforms may decide to take a similar stance and approach to security. Let's get ready for PHP8 though... you've been warned :p but no joking aside, most hosts will take quite a while to transition into 8, and you can always find a host that allows use of older PHP versions, while not the best route nor most secure, you can find them if you need them.
Calahan
09-01-2021, 09:39 AM
I am using this script
https://vbulletin.org/forum/showthread.php?t=83439
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.