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  
 
   
MX sitemap v0.2.0 Parse url problem

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
::  
Author Message
julian



Joined: 27 Jan 2007
Posts: 3

MX sitemap v0.2.0 Parse url problemPosted: Sat Jan 27, 2007 10:45 pm    Post subject: MX sitemap v0.2.0 Parse url problem

I have a small problem installing this mod.

When i go to sitemaps.php, i get the folowwing error:

Code:

Warning: parse_url(http://:/profile.php?mode=viewprofile&u=2) [function.parse-url]: Unable to parse URL in /usr/local/apache/htdocs/sforum1/phpbb_seo/phpbb_seo_class.php on line 140

Warning: parse_url(http://:/viewforum.php?f=1) [function.parse-url]: Unable to parse URL in /usr/local/apache/htdocs/sforum1/phpbb_seo/phpbb_seo_class.php on line 140

Warning: parse_url(http://:/viewtopic.php?t=1) [function.parse-url]: Unable to parse URL in /usr/local/apache/htdocs/sforum1/phpbb_seo/phpbb_seo_class.php on line 140


I use the advanced seo mod and optimal title mod.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

MX sitemap v0.2.0 Parse url problemPosted: Sun Jan 28, 2007 2:03 am    Post subject: Re: MX sitemap v0.2.0 Parse url problem

And welcome Very Happy

So this is coming form malformed links sent to append_sid(), by a mod most likely.

So we can work following two direction, we can either try to find out which mods is sending these links and fix them, or add a filter in the phpbb_seo class.

The first solution is the first one to test, because, if it's only a mod, and simple to fix, it will be faster to save a filter.

So to begin with, please open :

phpbb_seo/phpbb_seo_class.php

Find :
Code:
      $parsed_url = parse_url($this->url);

Replace with :
Code:
      $parsed_url = @parse_url($this->url);


This should just turn of the warning, and malformed links won't be rewritten, so we'll be able to find out which ones are Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
julian



Joined: 27 Jan 2007
Posts: 3

MX sitemap v0.2.0 Parse url problemPosted: Sun Jan 28, 2007 9:49 pm    Post subject: Re: MX sitemap v0.2.0 Parse url problem

ok i sorted this one thank you, the errors are gone, thats al what's needed.

Now i still have one small problem.
The url to the forum index show well in ie7 but in ie6 and firefox i only see this a href: http://:/

Its only on viewforum and viewtopic.

The link of my forum index is missing here.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

MX sitemap v0.2.0 Parse url problemPosted: Sun Jan 28, 2007 11:59 pm    Post subject: Re: MX sitemap v0.2.0 Parse url problem

Well, I need more info here, can you post a link ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

MX sitemap v0.2.0 Parse url problemPosted: Mon Jan 29, 2007 5:14 pm    Post subject: Re: MX sitemap v0.2.0 Parse url problem

I may have found a clue for this.

Try replacing :

Code:
         $this->url = PHPBB_URL . $this->seo_static['index'];


with :

Code:
         $this->url = $this->seo_static['index'];


in phpbb_seo/phpbb_seo_class.php

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
julian



Joined: 27 Jan 2007
Posts: 3

MX sitemap v0.2.0 Parse url problemPosted: Mon Jan 29, 2007 7:57 pm    Post subject: Re: MX sitemap v0.2.0 Parse url problem

I will try it now, let you know asap! Thank you
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: