![]() |
Old vB Plugin on PHP7
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? |
what error do you get?
|
I can see the forumhome
This works But if a klick on a thread I see a blank page |
What is in your error_logs (if you don't know where they are, ask your host)?
|
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 |
Edit the file/plugin and change:
=& new to = new |
Perfect :D:D
Thanks a million :up: |
Welcome
|
1 Attachment(s)
Quote:
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 |
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.
|
Quote:
I am now using 5.6 but I want to update it. Thank you for your help |
Contact the author of this mod. He has code encrypted there. Write to him to replace split() with explode().
|
Quote:
There is no means of communicating with him. |
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? |
attach the product and I will take a look at it.
|
1 Attachment(s)
Here are the plugin files
|
I wasn't able to duplicate this error, although I may have a fix.
In forum Change: PHP Code:
PHP Code:
|
Hello
Thanks for the fast help but it didn't change anything. Could it be that the htaccess has to changed? |
I'm using Fpm-fcgi on my new server.
May this be the reasons why the .php files aren't rewritten into .html? |
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]. |
Quote:
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. |
I am using this script
https://vbulletin.org/forum/showthread.php?t=83439 |
All times are GMT. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|