vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   FATAL ERROR: Invalid URL. (https://vborg.vbsupport.ru/showthread.php?t=323466)

zeu52 09-15-2016 01:10 PM

FATAL ERROR: Invalid URL.
 
I am seeing this error pop up on my forum quite a bit from time to time.

When it occurs either the page is there but just with the error at the top or the page isn't with just the error or in the Admin CP (where it is most prone to happen) the content can be missing from either of the panes with the error at the top.

Just wondered if anyone else has come across this?

i use latest 4.x : vBulletin 4.2.3 pl 2
PHP 5.6.24
MySQL 5.5.50 (mysqli)

Regards

Dragonsys 09-15-2016 04:20 PM

<a href="http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4019114-fatal-error-invalid-url" target="_blank">http://www.vbulletin.com/forum/forum...or-invalid-url</a>

Others have had the issue, but it doesn't seem like they ever figured out the root cause.

Paul M 09-16-2016 12:30 PM

Its checking if the PHP $GLOBALS variable exists.

This is something that has always existed in php (and still does).
It looks like they changed its behavior in php 5.4, so its not always initialized straight away, but it should always exist by the time that check runs.

http://php.net/manual/en/reserved.variables.globals.php
Quote:

As of PHP 5.4 $GLOBALS is now initialized just-in-time.

zeu52 09-25-2016 07:46 AM

i had to comment the code to make it work
Code:

if (!is_array($GLOBALS))
 {
 var_dump ($GLOBALS);
 //die('<strong>Fatal Error:</strong> Invalid URL.');
 }

but now i get more error like:

No Thread specified. If you followed a valid link, please notify the administrator

Sorry! This forum is not accepting new posts.


Paul M 09-25-2016 04:17 PM

You will do.

The check stops the code proceeding completely, but if you allow it to proceed, its going to fail in many ways as $GLOBALS does not exist.

zeu52 09-26-2016 06:04 AM

But if you allow it to proceed it fail 100% and i cant enter Admin Cp or see forums

is there any workaround?

Paul M 09-26-2016 09:26 AM

Get your server (apache) fixed.

$GLOBALS is created by php, not vbulletin, if its missing then any php software is going to have problems.

hugh_ 10-31-2016 07:18 PM

Quote:

Originally Posted by Paul M (Post 2576259)
Get your server (apache) fixed.

$GLOBALS is created by php, not vbulletin, if its missing then any php software is going to have problems.

I've been having this problem intermittently on one of two vbuletin installations only running of the same PHP and Apache installation. What do you mean exactly by fixing Apache? In my case I believe the culprit may be Dragonbyte's SEO plugin...

Thanks.

RichieBoy67 11-01-2016 01:33 AM

Quote:

Originally Posted by hugh_ (Post 2577515)
I've been having this problem intermittently on one of two vbuletin installations only running of the same PHP and Apache installation. What do you mean exactly by fixing Apache? In my case I believe the culprit may be Dragonbyte's SEO plugin...

Thanks.

Well to test that theory just disable that plug in and see if the issue still occurs.

hugh_ 12-20-2016 07:56 AM

Quote:

Originally Posted by Paul M (Post 2576259)
Get your server (apache) fixed.

$GLOBALS is created by php, not vbulletin, if its missing then any php software is going to have problems.

Paul if you could expand on this comment I would be pretty grateful...

So far I've tried disabling all plugins, removing all suspect files and over writing all install files several times. But I haven't been able to fix this and I've had the problem for more than a year and a half. I've enabled maximum log levels (trace8 and E-ALL) in Apache and PHP but still no smoking gun. Even stranger I have two identical copies of vBulletin and plugins running different web sites off the same PHP and Apache installation but only one has ever had the problem. The only lead I have is that whenever I get the error or crash OpenSSL errors seems to be logged such as:

OpenSSL: read 5/5 bytes from BIO#7fde28011fe0 [mem: 7fde48011463] (BIO dump follows)
OpenSSL: read 26/26 bytes from BIO#7fde2c016610 [mem: 7fde3000dda8] (BIO dump follows)
AH02001: Connection closed to child 128 with standard shutdown (server www.example.com:443)

Also whether this might be related to a bug in mod_ssl with small chunked files, based on searches for the above. And that I can consistently reproduce the problem if I rebuild search with a number of items to update less than 5000, but if I use a number far in excess, say 10000, the problem happens much less often if at all. Could there be some link there? I don't know.

PHP 5.6.29 using php5-fpm
MariaDB 10.1.20
OpenSSL/1.0.1t
Apache 2.4.10


All times are GMT. The time now is 06:10 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.01175 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete