phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
L#1847: Unable to parse URL error

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
::  
Author Message
Sebastiaan



Joined: 31 Jul 2008
Posts: 2

L#1847: Unable to parse URL errorPosted: Thu Jul 31, 2008 12:02 pm    Post subject: L#1847: Unable to parse URL error

Hello, i have a problem when users login on the forum, they get this error on the very top of the website:

Code:
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 1847: parse_url(http:///ps3life.nl?sid=2fda890d00fafdd3af2c91b184cfec9e) [function.parse-url]: Unable to parse URL


I looked at the line, but i cannot see the fault there, i think somewhere (maybe during installation) something is wrong, can you help me fix this?


Last edited by Sebastiaan on Thu Jul 31, 2008 2:50 pm; edited 1 time in total
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

L#1847: Unable to parse URL errorPosted: Thu Jul 31, 2008 2:21 pm    Post subject: Re: L#1847: Unable to parse URL error

This means that redirect() was called with a malformed url.
As the error seems related to this line in function.php :

Code:
   // Determine which type of redirect we need to handle...
   $url_parts = parse_url($url);


or this one maybe, still in the redirect() code :

Code:
   // Now, also check the protocol and for a valid url the last time...
   $allowed_protocols = array('http', 'https', 'ftp', 'ftps');
   $url_parts = parse_url($url);


It's hard to tell froms where this came from, you could try to activate debug in config.php, replace :
Code:
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);


with :
Code:
@define('DEBUG', true);
@define('DEBUG_EXTRA', true);


To see if logged as admin you can find out more about this error with the back trace (try to login using a bogus user account).

You can safely replace :

Code:
   // Determine which type of redirect we need to handle...
   $url_parts = parse_url($url);


with :
Code:
   // Determine which type of redirect we need to handle...
   $url_parts = @parse_url($url);


To shut down the error (if from there, but I think so), buggy user wil just be redirected to forum index when the error occurs, instead of the eventually different bogus url.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Sebastiaan



Joined: 31 Jul 2008
Posts: 2

L#1847: Unable to parse URL errorPosted: Thu Jul 31, 2008 2:49 pm    Post subject: Re: L#1847: Unable to parse URL error

Thanks for the fast reply.

The codes you showed me look the same in my file, so i dont see a problem there...

I've checked all the lines that this mod adds, and i couldn't find a difference anywhere.

I have used the @ sign in front of the function as a temporary fix for now, if anyone figures out this problem after all id be happy to hear the solution.

Thanks again for the support Smile
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

L#1847: Unable to parse URL errorPosted: Thu Jul 31, 2008 3:43 pm    Post subject: Re: L#1847: Unable to parse URL error

Nothing showed up with debug on ?

I don't think this can come from url rewriting if this is what you are mentioning.

Other mods using redirect() could.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
Page 1 of 1

Navigation Similar Topics

Jump to: