Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-31 10:24:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

asy_sitemap: Cannot redeclare page_title()

The error below started appearing today… The database seems ok in PHP Myadmin and also the articles appear that they are posting/saving just fine.

Fatal error: Cannot redeclare page_title() (previously declared in /users/home/foo/web/public/main/textpattern/publish/taghandlers.php:16) in /users/home/foo/web/public/main/textpattern/publish/taghandlers.php on line 64

Here are my diagnostics

Textpattern version: 4.0.4 (r1956)
Last Update: 2006-12-25 09:42:45/2006-12-25 09:40:49
Document root: /users/home/foo/web/public
$path_to_site: /users/home/foo/web/public/main
Textpattern path: /users/home/foo/web/public/main/textpattern
Permanent link mode: id_title
upload_tmp_dir: /usr/local/www/php/tmp
Temporary directory path: /users/home/foo/web/public/main/textpattern/tmp
Site URL: neme.org/main
PHP version: 5.1.4
Server Local Time: 2007-01-31 10:21:33
MySQL: 4.1.18-log
Locale: en_GB.ISO_8859-1
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers:
Server OS: FreeBSD 5.4-STABLE
Active plugins: ajw_notepad_public-0.1m, fha_time_diff-0.23m, mdn_count-1.4, mem_glinklist-0.7.4, hpw_shared-0.2, glx_admin_image-2006.1, rss_admin_db_manager-4.0.2, asy_sitemap-0.7m, ob1_googlenav-2.0m, glx_countdown-0.1, glx_admin_ping-0.1m, rdt_dynamenus-0.6m, mrh_email_article_link-0.3, chh_article_custom-0.41, glx_if-0.7, upm_savenew-0.4, zem_article_info-0.1, upm_img_popper-1.3.2, upm_image-0.5.9, jnm_recent_comments_unique-0.4, bas_locate_me-0.1, etz_striptags-0.2, if_article_id-1.0, wet_if_page-0.1, sed_afu-0.6, chh_if_data-0.10, fgr_punbb_info-0.01am, wet_slimpattern-0.3m, csb_if_newer_than-1.0, rss_article_edit-0.1, gbp_admin_library-0.1, SimplePie Plugin for Textpattern-1.2, bit_rss-0.3

Pre-flight check:
————————————
Some Textpattern files have been modified: /lib/classTextile.php
————————————

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

————————————

any help would be appreciated

(Edit: updated discussion topic. -Mary)

Last edited by Mary (2007-04-23 06:38:20)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2007-01-31 13:52:05

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: asy_sitemap: Cannot redeclare page_title()

Deactivate asy_sitemap.

Offline

#3 2007-01-31 14:14:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: asy_sitemap: Cannot redeclare page_title()

Sencer wrote:

Deactivate asy_sitemap.

Thanks sencer… that fixed it. Do you plan to update your plugin?

Also I posted something in the “Forum and Website” re forum search


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2007-04-23 00:15:39

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: asy_sitemap: Cannot redeclare page_title()

Colak, you found any workaround this error while keeping asy_sitemap?

Offline

#5 2007-04-23 06:09:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: asy_sitemap: Cannot redeclare page_title()

hi jeremie… Unfortunately not, I unfortunately had to abandon the use of the plugin


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2007-04-23 06:29:08

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: asy_sitemap: Cannot redeclare page_title()

Uncomment the line that includes taghandlers.php. It’s already included by textpattern itself at that point in more recent versions (hence the error about re-decleration).

Offline

#7 2007-04-23 23:30:13

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: asy_sitemap: Cannot redeclare page_title()

Sencer wrote:

Uncomment the line that includes taghandlers.php. It’s already included by textpattern itself at that point in more recent versions (hence the error about re-decleration).

It produces an error when I generate the sitemap by hand :

[code]Fatal error: Call to undefined function permlinkurl() in /home.10.5/dorem/multi/shadowrun.fr/textpattern/lib/txplib_misc.php(523) : eval()’d code on line 217[/code]

Offline

#8 2007-04-24 14:42:31

gerhard01
Plugin Author
Registered: 2006-12-07
Posts: 108

Re: asy_sitemap: Cannot redeclare page_title()

Jeremie wrote:

Sencer wrote:

Uncomment the line that includes taghandlers.php. It’s already included by textpattern itself at that point in more recent versions (hence the error about re-decleration).

It produces an error when I generate the sitemap by hand :

[code]Fatal error: Call to undefined function permlinkurl() in /home.10.5/dorem/multi/shadowrun.fr/textpattern/lib/txplib_misc.php(523) : eval()’d code on line 217[/code]

I get the same error on commenting out that line.

So my work-around is:
  1. enable plugin
  2. generate sitemap and ping Google
  3. disable plugin till the next time I want to update my sitemap

Offline

#9 2008-01-05 12:23:24

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: asy_sitemap: Cannot redeclare page_title()

I disabled auto creating sitemap on article edit and it fixed error


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#10 2008-03-19 18:37:30

freaky
Member
From: Austria
Registered: 2004-10-14
Posts: 55
Website

Re: asy_sitemap: Cannot redeclare page_title()

But that’s not that good :(

Is there a (better) working plugin around??

Offline

Board footer

Powered by FluxBB