Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2018-11-03 23:23:42

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 727
Website Mastodon

Re: Admin Search not working anymore since 4.7.0

etc wrote #314918:

Can you open the browser network console, do a search and see what is in the response? And make sure to refresh the browser cache before.

i don’t get any results in the console, when i clear cache before search (which doesn’t return anything either). If i simply just call the article list page after i cleared cache, i get

“Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.”

Am on newest Firefox.


A hole turned upside down is a dome, when there’s also gravity.

Offline

#17 2018-11-03 23:25:34

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 727
Website Mastodon

Re: Admin Search not working anymore since 4.7.0

Add-on to the post above: After a while i get more in the browser console:

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
post.php:1:1
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-regular.woff2. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-700.woff2. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-regular.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-700.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
viewtopic.php:1:1
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-regular.woff2. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-700.woff2. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-regular.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://textpattern.com/assets/fonts/pt-serif-v9-latin-ext-700.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://*.textpattern.com’).[Learn More]


A hole turned upside down is a dome, when there’s also gravity.

Offline

#18 2018-11-04 00:25:18

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,671
Website

Re: Admin Search not working anymore since 4.7.0

jayrope wrote #314922:

Add-on to the post above: After a while i get more in the browser console:

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
post.php:1:1
[…]

You see that when you access the front-end of your site, right? Anyway, it looks like your site is trying to access resources hosted on textpattern.com, but it is not allowed, due to CORS, set via the Header set Content-Security-Policy header in .htaccess.

But nowhere does a standard TXP install calls for resources (fonts, scripts) hosted on textpattern.com. Puzzled as how you then get all that output.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#19 2018-11-04 00:35:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,239
Website GitHub

Re: Admin Search not working anymore since 4.7.0

Maybe you have more than one inspector window open and got them muddled. There‘s no post.php or viewtopic.php in textpattern but there is in the forum when you write a new forum post or look at one.


TXP Builders – finely-crafted code, design and txp

Offline

#20 2018-11-04 09:05:39

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 727
Website Mastodon

Re: Admin Search not working anymore since 4.7.0

Making sure i am only looking at the search in the backend i only get
“Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.”
in the browser console while performing one search, which returns no results (no search does).

Edit: when i use Where Used 0.3 to perform a search the browser console doesn’t show anything but above line either.

Last edited by jayrope (2018-11-04 09:07:17)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#21 2018-11-04 09:19:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,513
Website GitHub

Re: Admin Search not working anymore since 4.7.0

The common factor here appears to be Hosteurope but quite what is the cause I don’t know. Admin search works fine for me – articles and comments – regardless of what search fields are used.

Would love to find out what’s causing this and, if it’s a server setting, what we can do about it in code to work around it if necessary.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#22 2018-11-04 11:23:57

etc
Developer
Registered: 2010-11-11
Posts: 5,690
Website GitHub

Re: Admin Search not working anymore since 4.7.0

uli wrote #314920:

Anything unusual?

I mean the response you get when you do a search. There should be only one POST to index.php in Network console. Click on it at look at the Response, though I don’t remember what you should see in 4.6.2.

Offline

#23 2018-11-05 13:58:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Admin Search not working anymore since 4.7.0

etc wrote #314948:

I mean the response you get when you do a search.

That was a search result, sorry :)

I can offer to you guys my own, currently not used homepage on Hosteurope as a testing ground for the set of problems described here. I’d hand you over all necessary keys to FTP/db and let you try. Would you like to?

EDIT: I’ve currently 4.6.2 installed, like the website that has the problems I’ve described above. The search terms on my client’s site are all like e.g. KW 48 - 2018, BTW, the titles of articles. Just the numbers changing from article to article.

Last edited by uli (2018-11-05 14:01:54)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#24 2018-11-05 17:14:46

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,513
Website GitHub

Re: Admin Search not working anymore since 4.7.0

To add some clarity to this, the searches Uli is talking about originate from the public site. Logged-in users tap a link that directs them to the Comments panel on the admin side and performs a “parent” search for the article squirted into the URL.

The problem is simply that the articles are being output with non-breaking space (hello, no-widow) and thus when clicked the nbsp is being converted to %c2%a0 in the URL. This means the search doesn’t work because the parent article is stored with regular spaces in the DB.

Swapping that character out (outputting the <title> tag with no_widow on the public site) makes this issue go away. Not a Hosteurope issue in this case.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#25 2018-11-05 17:19:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: Admin Search not working anymore since 4.7.0

My offer is still valid, you can test 4.7.on my webspace.

Thanks again this way here, Stef!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#26 2018-11-05 20:34:59

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 727
Website Mastodon

Re: Admin Search not working anymore since 4.7.0

Okay, the error i have here is appearing in the backend in the search window of content->articles.

Browser console doesn’t show any post.php or so, simply nothing.
demoncleaner, did you update from a version pre 4.2.0 to 4.7.1?
Because definately what i forgot to do, when updating from 4.0.5 to 4.7.1 directly is going through 4.2.0 first.
Stef, i was told you know what kind of errors one could face, when mistakenly going this path?
And Uli, i think my unconventional update process includes too many possible variations to try your nice offer.

Otherwise similarities on this error upon searching in the backend include hosting by Hosteurope and php fucntion syslog disabled. JSON 1.6.0 is loading here, says phpini.php.
sms_where_used_0.30 works here instead.

Last edited by jayrope (2018-11-05 20:46:56)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#27 2018-11-05 22:20:34

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,239
Website GitHub

Re: Admin Search not working anymore since 4.7.0

So, to clarify:

  1. public-side searching is working?
  2. admin-side searching with smd_where_used is working?
  3. admin-side searching on the articles panel is not working? Or only with some search settings?

Have you tried to truly-absolutely-certainly clear your cache so that it’s not loading an old version of textpattern.js? I’ve found the most recent version of safari (if you’re using that) to be quite stubborn and using “Einstellungen › Datenschutz › Website Daten verwalten -> type your domain in the search box, then delete everything that shows in the list” to be absolutely effective where other methods failed. Maybe make double-sure with your browser of choice.

@stef, oleg: Another loose idea: might perhaps an incomplete update process (that perhaps happens often with this hosting configuration) have led to improper table indexes being left over?


TXP Builders – finely-crafted code, design and txp

Offline

#28 2018-11-05 22:40:33

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 727
Website Mastodon

Re: Admin Search not working anymore since 4.7.0

jakob wrote #314993:

So, to clarify:

  1. public-side searching is working?
  2. admin-side searching with smd_where_used is working?
  3. admin-side searching on the articles panel is not working? Or only with some search settings?

It seems, that now i am sort of hijacking demoncleaner’s thread…
however, the website i updated has no public search, so i will have to set one up yet. Should I?

However, regarding 2. and 3.,
2. yes, is working, and
3. yes, not working at all. There isn’t even a result message.

I am certain that my cache has been emptied numerous times now as well :)

Last edited by jayrope (2018-11-05 22:41:55)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#29 2018-11-05 22:56:07

etc
Developer
Registered: 2010-11-11
Posts: 5,690
Website GitHub

Re: Admin Search not working anymore since 4.7.0

uli wrote #314983:

My offer is still valid, you can test 4.7.on my webspace.

I could tomorrow.

Offline

#30 2018-11-05 23:23:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,513
Website GitHub

Re: Admin Search not working anymore since 4.7.0

jayrope wrote #314994:

[article search] not working at all. There isn’t even a result message.

If there are no results you should get a message saying ‘No results’ in some language. If you’re not seeing that, it’s definitely something we need to look into.

But just to be absolutely sure, your search options are set to search all facets of the article – all checkboxes on, or at least one of them on? ‘Cos when you click through from other panels (such as the Sections panel to view articles) it turns most of the checkboxes off.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB