vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Old vB Plugin on PHP7 (https://vborg.vbsupport.ru/showthread.php?t=326910)

Calahan 11-18-2018 09:05 PM

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?

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

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 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

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 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

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 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

1 Attachment(s)
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:
PHP Code:

$DB_site = &$vbulletin->db

To:
PHP Code:

$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

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 09-01-2021 09:39 AM

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
  • Page Generation 0.01246 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete