Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2024-12-09 05:25:52

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

Re: smd_where_used: help keep your admin side tidy

It appears that there is a bug on 0.4.0, Textpattern version: 4.9.0-dev (d72fbb8ac8a902583c01b17537647986).

When I select the “Whole words” checkbox and click on search, the following error is returned.

Fatal error: Uncaught mysqli_sql_exception: Illegal argument to a regular expression. in /path/to/site/textpattern/lib/txplib_db.php:442 Stack trace: #0 /path/to/site/textpattern/lib/txplib_db.php(442): mysqli_query(Object(mysqli), 'SELECT name FRO...', 0) #1 /path/to/site/textpattern/lib/txplib_db.php(1192): safe_query('SELECT name FRO...', false) #2 /path/to/site/textpattern/lib/txplib_db.php(1037): getRows('SELECT name FRO...', false) #3 /path/to/site/textpattern/plugins/smd_where_used/smd_where_used.php(365): safe_rows('name', 'txp_section', '(page REGEXP '[...') #4 /path/to/site/textpattern/plugins/smd_where_used/smd_where_used.php(71): smd_wu->search() #5 /path/to/site/textpattern/lib/txplib_misc.php(1660): smd_wu->smd_wu('smd_wu', 'search') #6 /path/to/site/textpattern/index.php(221): callback_event('smd_wu', 'search', 0) #7 {main} thrown in /path/to/site/textpattern/lib/txplib_db.php on line 442

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

Offline

#122 2024-12-09 06:19:28

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

Re: smd_where_used: help keep your admin side tidy

I’ll take a look. Thanks for the report.


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

Board footer

Powered by FluxBB