vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326910

Old vB Plugin on PHP7
by Calahan
18 Nov 2018 23:05

Hello

I`m still using an old plugin which is only working under PHP5.
Im talking about vB Easy Archive
https://vbulletin.org/forum/showthread.php?t=83439

Is there a chance to get it working on PHP7?

motd2 20 Nov 2018 03:40

what error do you get?

Calahan 21 Nov 2018 00:46

I can see the forumhome
This works
But if a klick on a thread I see a blank page

motd2 21 Nov 2018 02:10

What is in your error_logs (if you don't know where they are, ask your host)?

Calahan 28 Nov 2018 20:39

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 28 Nov 2018 20:47

Edit the file/plugin and change:

=& new

to

= new

Calahan 29 Nov 2018 22:10

Perfect :D:D
Thanks a million :up:

snakes1100 29 Nov 2018 22:12

Welcome

Emad ELsayed 20 Jan 2019 17:09

1 Attachment(s)
Quote:

Originally Posted by snakes1100 (Post 2597558)
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 20 Jan 2019 18:25

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 20 Jan 2019 18:42

Quote:

Originally Posted by snakes1100 (Post 2598171)
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 20 Jan 2019 21:13

Contact the author of this mod. He has code encrypted there. Write to him to replace split() with explode().

Emad ELsayed 20 Jan 2019 21:18

Quote:

Originally Posted by motd2 (Post 2598173)
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 29 Oct 2020 16:59

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 29 Oct 2020 20:55

attach the product and I will take a look at it.

Calahan 30 Oct 2020 01:02

1 Attachment(s)
Here are the plugin files

Dr.CustUmz 30 Oct 2020 01:16

I wasn't able to duplicate this error, although I may have a fix.

In forum
Change:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

let me know if this resolves this

Calahan 30 Oct 2020 09:47

Hello
Thanks for the fast help but it didn't change anything.
Could it be that the htaccess has to changed?

Calahan 02 Nov 2020 07:43

I'm using Fpm-fcgi on my new server.
May this be the reasons why the .php files aren't rewritten into .html?

Calahan 18 Aug 2021 10:46

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 01 Sep 2021 00:29

Quote:

Originally Posted by Calahan (Post 2607366)
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/10...lems-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-g...tatic-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 01 Sep 2021 12:39

I am using this script
https://vbulletin.org/forum/showthread.php?t=83439


All times are GMT. The time now is 18:01.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.