GYM Sitemap-RC4 Error

The GYM Sitemaps and RSS module and it's plug-ins.
Google Yahoo MSN Sitemaps (United 0.9).
RSS 2.0 Feeds and Yahoo! urllist.txt.

Moderator: Moderators

GYM Sitemap-RC4 Error

Postby niks999 » Wed May 09, 2007 7:34 am

Hey Guys....

I installed GYM Sitemaps RC 4 downloaded frm here only...
http://downloads.phpbb-seo.com/gym-site ... ss-14.html

I installed it successfully....

Everything is fine....

It is showing in the Admin Panel also...

But Wen I go to
http://nixbox.110mb.com/sitemap.php

It shows this error....

Code: Select all
Fatal error: Call to undefined method phpbb_seo::microtime_float() in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 127


Plz Help Me.... :(
niks999
 
Posts: 5
Joined: Wed May 09, 2007 7:30 am

Advertisement

Postby dcz » Wed May 09, 2007 8:48 am

And welcome :D

Hum, so it could come from, I'm just thinking, the fact you'd be using the phpBB SEO meta tags standalone (without the phpBB SEO mod rewrite).

If so, just add :

Code: Select all
      /**
      * Returns microtime
      * Borrowed from php.net
      */
      function microtime_float() {
         return array_sum(explode(' ', microtime()));
      }


In phpbb_seo/phpbb_seo_class.php, right before :

Code: Select all
}
?>


++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby niks999 » Wed May 09, 2007 9:06 am

dcz wrote:And welcome :D

Hum, so it could come from, I'm just thinking, the fact you'd be using the phpBB SEO meta tags standalone (without the phpBB SEO mod rewrite).

If so, just add :

Code: Select all
      /**
      * Returns microtime
      * Borrowed from php.net
      */
      function microtime_float() {
         return array_sum(explode(' ', microtime()));
      }


In phpbb_seo/phpbb_seo_class.php, right before :

Code: Select all
}
?>


++


Yes..
I m using the phpBB SEO meta tags standalone ....

But Wen I Tried This wat u told.....

The errors hav increased....
these r the errors....

[code]Warning: Invalid argument supplied for foreach() in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 270

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 510

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 513

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 514

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 515

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 516

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 517

Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php:270) in /www/110mb.com/n/i/x/b/o/x/_/_/nixbox/htdocs/mx_ggsitemaps/includes/ggs_functions.php on line 518
‹´“KkÜ0…×ö¯P½™–¢—_™cÏ"Ðl’.â ´«â‡blÉXjÆÓ_Éu“lbHa@ Iœs¿{®Ðþ0õxâ£j¥H6‘ ࢔U+êdópü·›Cêî­ *}î¸j8×@ŸžxšOOªó@3òÇÄk´Æ¢
niks999
 
Posts: 5
Joined: Wed May 09, 2007 7:30 am

Postby dcz » Wed May 09, 2007 9:32 am

Ho I see, I'm afraid we did not really work on this type of cases.

So in the end you need the phpbb_seo class populated with all the method you'll find in mx_ggsitemaps/includes/ggs_functions.php :

Code: Select all
   class phpbb_seo {
      var   $seo_url = array();
      var   $seo_delim = array();
      var   $seo_ext = array();
      var   $seo_static = array();
      var   $modrtype = -1;
      var   $encoding = '';
      /**
      * constuctor
      */
      function phpbb_seo() {
         $this->encoding = ''; // Leave as is to allow setting in acp in case you're not using the phpBB SEO mod rewrites.
         // URL Settings
         $this->seo_url = array( 'cat' => 'cat',
            'forum' => 'forum',
            'topic' => 'topic',
            'user' => 'member'
         );
         $this->seo_delim = array('cat' => '-vc',
            'forum' => '-vf',
            'topic' => '-vt',
            'user' => '-u'
         );
         $this->seo_ext = array('cat' => '.html',
            'forum' => '.html',
            'topic' => '.html',
            'user' => '.html'
         );
         $this->seo_static = array('cat' => 'cat',
            'forum' => 'forum',
            'topic' => 'topic',
            'post' => 'post',
            'user' => 'member',
            'start' => '-',
            'gz_ext' => '.gz',
            'index' => ''
         );
         $this->modrtype = -1;
         return;
      }
      // --> Gen stats
      /**
      * Returns microtime
      * Borrowed from php.net
      */
      function microtime_float() {
         return array_sum(explode(' ', microtime()));
      }
      // --> URL rewriting functions <--
      /**
      * Prepare Titles for URL injection
      * Replace by the function you'd prefer for different URL injection standards
      */
      function format_url( $url, $type = 'topic' ) {
         //Short url
         $url = preg_replace("(\[.*\])U","",$url);
         $find = array('&quot;','&amp;','&lt;','&gt;','\r\n','\n',);
         $url = str_replace ($find, '-', $url);
         $url = str_replace ('ß', 'ss', $url);
         $url = str_replace (array('ö','Ö'), 'oe', $url);
         $url = str_replace (array('ä','Ä'), 'ae', $url);
         $url = str_replace (array('ü','Ü'), 'ue', $url);
         $find = "ÀÁÂÃÅàáâãåÒÓÔÕØòóôõøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛùúûÿÑñ";
         $replace = "aaaaaaaaaaooooooooooeeeeeeeecciiiiiiiiuuuuuuynn";
         $url = strtr($url,$find,$replace);
         $url = preg_replace("`[^a-zA-Z0-9]`", "-", $url);
         $url = preg_replace("`[-]+`", "-", $url);
         $url = trim($url, '-');
         $url = ( $url == "" ) ? $type : strtolower($url);
         return $url;
      }
   }


This means you could start a new phpbb_seo_class.php file, put this in it, and then, install the dynamic meta tag part (only in phpbb_seo_class.php) before you upload it.

Will work.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby niks999 » Wed May 09, 2007 4:40 pm

It Worked.....

Thnx.... :D
niks999
 
Posts: 5
Joined: Wed May 09, 2007 7:30 am

Postby Divvy » Tue Jul 22, 2008 12:24 pm

Hi again dcz :)

Sorry, my english is very poor and didnt understood what I need to do in your last message.

I already did this part in phpbb_seo/phpbb_seo_class.php:
Code: Select all
/**
      * Returns microtime
      * Borrowed from php.net
      */
      function microtime_float() {
         return array_sum(explode(' ', microtime()));
      }



And now, I got this errors when I access to sitemap.php:
Code: Select all
Warning: Invalid argument supplied for foreach() in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 270

Warning: Cannot modify header information - headers already sent by (output started at /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php:270) in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 510

Warning: Cannot modify header information - headers already sent by (output started at /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php:270) in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 520

Warning: Cannot modify header information - headers already sent by (output started at /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php:270) in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 521

Warning: Cannot modify header information - headers already sent by (output started at /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php:270) in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 522

Warning: Cannot modify header information - headers already sent by (output started at /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php:270) in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 523

Warning: Cannot modify header information - headers already sent by (output started at /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php:270) in /home/vns/public_html/mx_ggsitemaps/includes/ggs_functions.php on line 524
http://www.viciadosnosexo.com/sitemap.php?forum 2008-07-22T12:17:19+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=40 2008-07-22T12:13:24+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=44 2008-07-22T11:27:09+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=10 2008-07-22T07:57:28+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=36 2008-07-22T05:17:00+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=1 2008-07-22T01:23:31+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=38 2008-07-22T01:06:48+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=2 2008-07-22T01:04:36+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=47 2008-07-22T01:01:41+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=7 2008-07-21T23:36:50+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=14 2008-07-21T23:13:30+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=25 2008-07-21T22:55:33+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=11 2008-07-21T22:35:29+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=22 2008-07-21T20:53:22+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=59 2008-07-21T03:45:37+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=43 2008-07-21T02:01:24+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=5 2008-07-21T00:11:50+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=23 2008-07-20T17:28:36+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=18 2008-07-20T17:22:15+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=9 2008-07-19T16:11:08+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=24 2008-07-18T01:34:59+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=8 2008-07-17T10:50:10+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=6 2008-07-16T22:21:22+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=21 2008-07-13T23:22:13+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=30 2008-07-09T20:30:52+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=12 2008-07-05T18:15:52+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=45 2008-07-05T02:31:07+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=65 2008-06-29T19:24:25+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=3 2008-06-26T10:17:09+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=4 2008-06-14T23:24:23+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=55 2008-06-14T01:20:40+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=48 2008-06-09T15:01:55+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=13 2008-05-31T21:29:42+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=60 2008-05-22T03:01:15+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=66 2008-05-17T00:25:57+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=58 2008-01-25T03:45:54+00:00 http://www.viciadosnosexo.com/sitemap.php?forum=49 2007-01-07T20:16:21+00:00


Can you explain in other words, what I need to do now?
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby Divvy » Tue Jul 22, 2008 3:48 pm

please, can someone help me?
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Tue Jul 22, 2008 4:22 pm

Make sure you have it in mx_ggsitemaps/includes/ggs_functions.php as well (see above).

Are you using the dynamic meta tag mod standalone ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Tue Jul 22, 2008 4:45 pm

I installed phpBB SEO Dynamic Meta Tags yes

What? I need to add this lines in mx_ggsitemaps/includes/ggs_functions.php as well?
Code: Select all
/**
      * Returns microtime
      * Borrowed from php.net
      */
      function microtime_float() {
         return array_sum(explode(' ', microtime()));
      }


I already did and didnt work :(
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Tue Jul 22, 2008 5:12 pm

In standalone mode, eg without the phpbb seo mods installed ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Tue Jul 22, 2008 5:24 pm

Yes, I think that was standalone.

I only have this seo mods:
Optimal titles
Dynamic meta tags
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Tue Jul 22, 2008 5:40 pm

All right, why not installing a mod rewrite then ?

The standalone install is tricky, it's working, but it's harder to install. Since mod rewrite is far a better SEO than the meta tag mod, you could have less trouble if you install it first.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Tue Jul 22, 2008 5:47 pm

I cant, because I already use one:
http://www.able2know.org/forums/about15132.html

Is there any solution for me? :(
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Postby dcz » Wed Jul 23, 2008 8:31 am

The easy way would be to only use GYM at first, and then take the time for a local install for the meta tag mod, there is no reason why it should not work, but as said, the phpBB2 version is tricky in standalone mod.

Or you could think about converting to phpBB3 since it's the end of phpBB2 ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Divvy » Wed Jul 23, 2008 9:10 am

dcz wrote:The easy way would be to only use GYM at first, and then take the time for a local install for the meta tag mod, there is no reason why it should not work, but as said, the phpBB2 version is tricky in standalone mod.


And this will not causing me problems with the urls already indexed by google?
If I change my urls, the current urls will not work anymore right? And I´be got 126.000 urls in google.
Divvy
 
Posts: 44
Joined: Thu Jul 17, 2008 11:49 pm

Next

Return to GYM Sitemaps phpBB2

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests


 
cron