Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#661 2016-11-03 23:52:10

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: gbp_permanent_links

Okay, I switched from testing to debugging and on the Textpattern Diagnostics Tab I am getting:


Pre-flight check

Clean URL data test failed: <pre dir="auto">A problem occurred while loading the plugin: <b>gbp_permanent_links</b> -> <b>Notice: unserialize(): Error at offset 0 of 212 bytes on line 218</b></pre> i

Offline

#662 2016-11-03 23:55:52

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: gbp_permanent_links

I think I am going to blow the whole thing up tomorrow and start from a brand new install just to be sure I haven’t broken something that didn’t show up until now.

Offline

#663 2016-11-04 00:20:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: gbp_permanent_links

Alright I think I’ve hacked out the multi-pref saving thing so all rules are now saved as one link per pref value. I’ve kept the base64 for safety. When you do your teardown, please try this version of the admin library and see how you get on:

# Name: gbp_admin_library v0.4.7 (compressed)
# Type: Library plugin
# GBP's Admin-Side Library
# Author: Graeme Porteous
# URL: http://rgbp.co.uk/projects/textpattern/gbp_admin_library/
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA+0923LbRpbP0le0aY1AzlIgJdmOQ12cxJET1zq2y1aSnXJcLJBokhiRAAcA
LSkeVc1vbNXuz82X7Ll1o3EhJeXytjUXg43u06dPnz73hoLB/v7gczZ4NGjFwUK3jrLB/heD
1nS0HAbhIoqH82iUBuk1vngyaAWrfJak1OvxoPVdGuiFVm+TNNfJKqPmvuk0XKURtjwGcLM8
Xw56vRTA+uPEX130lmnydz3Os16ur/JlkOc6jXu1WXsIAMZ/0mkWJTGBG7T6/iP/C5psf9AK
dTZOo2Uurw9g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Sj9ec6QkKVgUUziyWpSodJHwF7o3sCFYr+Cb
r10H1yP5qBzKPU9GmK8/XWouxsN7U/MsMZ8xAHgusGzblioU+cnaQXbymHiA+dE4JzB6iIWY
DgRRQBjLpCVNojTLlZ5TCSCC4I8kRCh35Kuakn5j0DgexXbbTGVBvsJa2qmOOfwfUAWoYLYn
t7BTvsG8wCylTEn7BmQBX62NqzYFL/JlDADSQW0Q4OdIZcbi4hK+dmMXZoiybCC4VT84c0l3
UFcgI675ln4FXYCHhAByxBrd5iC9rhDURPmkpaMwtUWIPStiGhTJMj3EkqE+VlNU9DQjgB8C
9e1A5fC08wWe2iRO3KTM2JUPjSiTyqVxF0V6mhfmFNOx2OXrWxfG47WOIjSVil324Zwb6UKJ
e7zAz1EHz4id5AJDDWvCXxSWL1eC0LPJow+cyfoNk0kU426TScC+YTpxViTY37AmeXOnaSof
a3ELXEpjUUYeo0KyZbU+z+hj3SuJRumMiouyW3xdGMdw+IVtIiw5Mcaa2WfnFh6BIP0gUxvR
LNtNTFB8hLYqYwo2r736sHbIntr/yPY0IoeomtBGHUjx/UHq3FTNupLsiQ1+yR3Zyud0Gnej
SL0UJdLlCYwx+8dMwYepeRH2W0O/cRJrHdy2lD9yok0Lcmy93zqVyVfdtqQ/dqrmRYklWprK
MbRFDK+P+FSTaE5An5JoHJvnYGLHv9ZZnLwLwihpGxvKmXmIIWBPvDusjZI/60OfNMc/CjRo
HcgfCiITQtoeS9tkHkwzaevLUCq4wqYvnwxax8vT3Xl+hGFbMIb//a//oZonXAp2+/e//nd3
mh/htwm2t49n+6eVv4H073/9N//lIfNHh/zjHvSCvsvTt2nyKQp1pkZSkMKZJbwSM1qBu2ku
1fJtA/zLIRh4v5bvoHZNSqor2b/MFywYYfT7DGq4mMNBaxHSqg8PBq3RZNKfHIz6+08P9794
+vTg6dNwcnjw6Iu+fjLaf/L0Uevo5v8AiAA+ygtqAAA=

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#664 2016-11-04 19:01:12

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: gbp_permanent_links

Okay – brand new 4.6.2 install. Created one rule

section/author/title for articles in the articles section

If you visit “http://presidents.cmsstyles.com/articles/michael+k+pate/welcome-to-your-site/“http://presidents.cmsstyles.com/articles/michael+k+pate/welcome-to-your-site/

the following code is appended to the top of the page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>My site</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="" content="0;url=http://presidents.cmsstyles.com/articles/michael+k+pate/welcome-to-your-site/" />
</head>
<body>
    <a href="http://presidents.cmsstyles.com/articles/michael+k+pate/welcome-to-your-site/">Moved Permanently</a>
</body>
</html>

So it wasn’t me.

Note I had to remove “refresh” above because it seemed to negatively impact the form software.

Offline

#665 2016-11-04 19:08:53

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: gbp_permanent_links

I deleted the rule – everything went back to normal.

Made a new rule – section/date/title – and the refresh/Moved Permanently returned.

Offline

#666 2016-12-26 20:37:58

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: gbp_permanent_links

Bloke wrote #302643:

Alright I think I’ve hacked out the multi-pref saving

Yes! this did the job and the plugin is now working good for me, I deleted and install both of them again and it works with this one, thank you so much!!! :) <3
I’m now able to save rules and it works as in previous TXP versions.
I only tried to create these two rules but they both works:
en/section/id/
en/section/category/
Where “en” is a plain text

Offline

#667 2017-03-05 04:23:43

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: gbp_permanent_links

My site heavily relied on sgb_url_handler (I know—it’s way back in the day). I’ve installed gbp_permanent_links and looks like I build my own url rules; yet no matter what I try and save, it tells me I’ve successfully saved the new link rule, and then nothing seems saved — my list is empty (“You haven’t created any custom permanent link rules yet”). What obvious thing am I missing, please?
Also, hi! ::emphatically waves::: It’s been too long.

**update: Okay I don’t know. I installed Stef’s v0.4.7 version and now it appears to be saving :)

**further update: and seems to be working! :) Thanks Graeme and Stef! On to my next challenge…

**me again: debug mode seems less than happy:

A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 108 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1940 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 109 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1940 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 108 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1940 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 111 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1940 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()
A problem occurred while loading the plugin: gbp_permanent_links -> Notice: unserialize(): Error at offset 0 of 108 bytes on line 194
textpattern/lib/txplib_misc.php(1368) : eval()'d code:194 unserialize()
GBPPlugin->gbp_serialized()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:123 call_user_func()
textpattern/lib/txplib_misc.php(1368) : eval()'d code:89 GBPPlugin->load_preferences()
textpattern/lib/txplib_misc.php(1782) : eval()'d code:1940 GBPPlugin->GBPPlugin()
textpattern/lib/txplib_misc.php:1782 eval()
textpattern/publish.php:169 load_plugins()
index.php:104 include()

Last edited by alicson (2017-03-05 04:41:31)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#668 2017-03-06 02:48:01

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: gbp_permanent_links

alicson wrote #304410:

Also, gbp_permanent_links seems to be overriding all my regular permlinks to /category/title/ where they’re meant to be /section/id/title/

Bloke wrote #304413:

That’s what happened to me. Thought it was just me being a bit thick and not knowing how the plugin was supposed to be used. But if it’s doing the same for you then it sounds like a bug that needs squashing.

That’ll unfortunately take some debugging time because, frankly, the entire plugin is just voodoo to me. But I’ll see what I can do about it. And those unserialize errors.

Perhaps Graeme or others may be able to help make sense of it? Really wish I could be more helpful on the coding ground. I’m not sure how gbp_permanent_links were meant to be called; I used mic_permlink which worked with sgb_url_handler back in the day.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#669 2017-03-13 09:30:11

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: gbp_permanent_links

FWIW I had to turn off gbp_permanent_links because while they were serving my sitename/section/category/ pages beautifully, when the plugin is active then visiting any individual article pages results in a list view instead -_-

So with it turned off, I have my happy individual article pages, however cannot get to some of my other sections (that are categories in disguise).

*update: turned sgb_url_handler back on. It’s working seemingly beautifully… All the various types of URLs are loading, as are individual articles.
I haven’t checked error codes though, which I’m sure are aplenty.. will get to that after some sleep.

Last edited by alicson (2017-03-13 10:18:52)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#670 2019-05-30 22:46:47

wavesource
Member
From: Australia
Registered: 2011-08-02
Posts: 56

Re: gbp_permanent_links

I’ve confirmed v0.14 patch 7 + Stef’s gbp_admin_library v0.4.7 update are performant on TXP 4.6.2 running on PHP 5.6

Installing on TXP 4.72 on PHP 7.1.2 and the error messages, though not extensive, are displayed on the link list page – creating/editing links displays without errors:

Fatal error: Uncaught Error: Call to undefined function select_buttons() in /home/USER/public_html/textpattern/lib/txplib_misc.php(1870) : eval()'d code:1867 Stack trace: #0 /home/USER/public_html/textpattern/lib/txplib_misc.php(1441) : eval()'d code(337): PermanentLinksListTabView->main() #1 /home/USER/public_html/textpattern/lib/txplib_misc.php(1441) : eval()'d code(275): GBPPlugin->render_tab_main() #2 /home/USER/public_html/textpattern/lib/txplib_misc.php(1989): GBPPlugin->render('permlinks', '') #3 /home/USER/public_html/textpattern/index.php(258): callback_event('permlinks', '', 0) #4 {main} thrown in /home/USER/public_html/textpattern/lib/txplib_misc.php(1870) : eval()'d code on line 1867

Seems more about old plugin attempting to hook into deprecated function in TXP itself.

So I commented out the following lines in gpb_permanent_links for the 2 functions that were throwing errors:

  • 1867 select_buttons()
  • 1913 event_multiedit_form()

And errors have ceased. Plugin appears performant for what I need it to do (deep heirarchy Plain Text permlinks) – aside from button on panel to delete links. I can live with that for now.

Last edited by wavesource (2019-05-30 23:19:10)

Offline

#671 2020-02-19 12:40:25

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: gbp_permanent_links

TXP 4.8.0 beta3 & PHP7, in debugging mode, on localhost, returns this error:

General error Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead on line 285
C:\wamp64\www\example\textpattern\plugins\gbp_permanent_links\gbp_permanent_links.php:285 preg_replace()
C:\wamp64\www\example\textpattern\lib\txplib_misc.php:1513 PermanentLinks->_textpattern()
C:\wamp64\www\example\textpattern\publish.php:713 callback_event()
C:\wamp64\www\example\index.php:74 textpattern()

if (isset($prefs[‘permalink_title_format’])) {
$mt_search = array(‘/_/’, ‘/\.html$/’);
$mt_replace = array(‘-’, ‘’);
} else {
$mt_search = array(‘/(?:^|_)(.)/e’, ‘/\.html$/’);
$mt_replace = array(“strtoupper(‘\\1’)”, ‘’);
}
$mt_uri_c = $this->pref(‘redirect_mt_style_links’)
? preg_replace($mt_search, $mt_replace, $uri_c)

‘’;

I do not know how to convert it into a preg_replace_callback(), so if I just removes the e it returns an other error:

General error Textpattern Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘s’)hows’) limit 1’ at line 1 on line 403

C:\wamp64\www\example\textpattern\lib\txplib_db.php:403 trigger_error()
C:\wamp64\www\example\textpattern\lib\txplib_db.php:1078 safe_query()
C:\wamp64\www\example\textpattern\lib\txplib_db.php:917 getRow()
C:\wamp64\www\example\textpattern\plugins\gbp_permanent_links\gbp_permanent_links.php:291 safe_row()
C:\wamp64\www\example\textpattern\lib\txplib_misc.php:1513 PermanentLinks->_textpattern()
C:\wamp64\www\example\textpattern\publish.php:713 callback_event()
C:\wamp64\www\example\index.php:74 textpattern()

Here’s the code at lines 291-296 with the safe_row() call that seems to throw this error:

if ($rs = safe_row(‘name’, ‘txp_section’, “(`name` like ‘$uri_c’ or `name` like ‘$mt_uri_c’) limit 1”)) {
$this->debug(‘Section name: ‘.$rs[‘name’]);
$pretext_replacement[‘s’] = $rs[‘name’];
$context[] = “`Section` = ‘{$rs[‘name’]}’”;
$match = true;
}

How do I fix this please?

Last edited by THE BLUE DRAGON (2020-02-19 13:02:26)

Offline

#672 2020-02-19 13:00:45

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

Re: gbp_permanent_links

Which version of PHP? There seems to be a number of changes for each decimal.


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

Offline

Board footer

Powered by FluxBB