Textpattern Forum

You are not logged in. Register | Login | Help

#11 2004-04-08 12:15:27

mamash
Admin
From: Prague
Registered: 2004-02-21
Posts: 124
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

Is this particular plugin turned on in the plugin administration?


Who’s gonna textdrive you home tonight?

Offline

#12 2004-04-08 12:41:05

Echo5ive
New Member
From: Stockholm, Sweden
Registered: 2004-03-14
Posts: 7
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

I got it working — I too copied the actual txp markup from your post, so I got curly quotes there. That’s why it didn’t output anything.

However, it outputs this link:

<link rel="top" href="/default" title="Section">

I have no section called “default,” so that link leads to a 404.


VC200 member!

Offline

#13 2004-04-08 13:13:17

kusor
Member
From: Spain
Registered: 2004-03-07
Posts: 92
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

I think it’s all fixed now.

Anyway, I’m having a lot of troubles updating the plugin.

Currently, I’m gziping the plugin using php. I’ve created a small script to output the contents of the plugins after to gzip it, reading from the gzip file.

The screen output looks well, but when I try to update it, nothing changes in the instaled code.

last version fix teh misplaced double quote, and checks

if(!empty($type)){

and

if(!empty($s) && $section!="default"){

Can you see these changes?. Any idea?.

Offline

#14 2004-04-10 16:56:33

kusor
Member
From: Spain
Registered: 2004-03-07
Posts: 92
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

Not at all, akvalley; TXP design makes really easy to share these small utilities

I hope to improve it adding alternate links, first and last, and making the prev and next links to work with sections and categories also.

Anyway, I’m going test it strongly before to launch next version ;-).

Ah!, about my problem updating plugins code: a bad firefox cache configuration. Things which happen when you’ve got more than one computer.

Offline

#15 2004-04-11 16:56:54

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 322
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

Hey Kusor,

Under Gamma 1.18 this plugin gives me the following error:

8: Undefined variable: title in /tmp/pluginsi0zXxi at line 39
Backtrace:
<b>Fatal error</b>: Call to undefined function: debug_backtrace() in <b>/homepages/25/d89689749/htdocs/txp/textpattern/lib/txplib_misc.php</b> on line <b>94</b>

Any ideas? I’m going to look into it now.

Ram.

Last edited by ramanan (2004-04-11 16:59:21)

Offline

#16 2004-04-11 17:02:01

Dean
Founder
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

Try commenting out the set_error_handler line at the top of /lib/txplib_misc.php


text*

Offline

#17 2004-04-11 21:55:38

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 322
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

Dean, that was the problem. Thanks for the quick response.

Offline

#18 2004-04-12 07:51:05

kusor
Member
From: Spain
Registered: 2004-03-07
Posts: 92
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

Since TXP works fine for PHP versions older than 4.3 – I’ve got it working properly on a PHP 4.2.2 production environment – seems logical to enclose that call to debug_backtrace in an if sentence, like

if(function_exists("debug_backtrace")){ ... }

I think that isn’t too complex to maintain compatibility with 4.2 versions, until a new TXP cool feature needs to break it.

Anyway, I’m going to check for defined, non empty variables for all plugins I develop from now. Hope a new revision of the plugin today.

Offline

#19 2004-04-12 09:01:52

Dean
Founder
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: [plugin] [ORPHAN] ppc_navigation_aid

True enough: that call to debug_backtrace is just something I use for dev – it shouldn’t have made it to release.


text*

Offline

Board footer

Powered by FluxBB