Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Admin Search not working anymore since 4.7.0
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.
Offline
Re: Admin Search not working anymore since 4.7.0
demoncleaner wrote #312964:
… And it also appears only on Hosteurope Hosting.
Can anyone confirm that or has any idea what could cause that? In the Diagnose Tab I see that syslog is deactivated. But I guess that this cannot be the reason for the problem.
I will also try to contact Hosteurope on that topic and keep you posted. Any more hints and ideas would be really appreciated.
Did you get an answer of hosteurope yet?
A hole turned upside down is a dome, when there’s also gravity.
Offline
#15 2018-11-03 23:22:31
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
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’ve this on 4.6.2:
(EDIT: and syslog is also deactivated on my server)
GET
http://mysite.tld/textpattern/index.php [HTTP/1.1 200 OK 172ms]
GET
http://mysite.tld/textpattern/vendors/jquery/jquery/jquery.js [HTTP/1.1 200 OK 453ms]
GET
http://mysite.tld/textpattern/vendors/jquery/jquery-ui/jquery-ui.js [HTTP/1.1 200 OK 834ms]
GET
http://mysite.tld/textpattern/textpattern.js [HTTP/1.1 200 OK 498ms]
GET
http://mysite.tld/textpattern/admin-themes/hive/assets/css/textpattern.min.css [HTTP/1.1 200 OK 561ms]
GET
http://mysite.tld/textpattern/admin-themes/hive/assets/js/main.min.js [HTTP/1.1 200 OK 177ms]
GET
http://mysite.tld/textpattern/vendors/PrismJS/prism/prism.js [HTTP/1.1 200 OK 653ms]
GET
http://mysite.tld/textpattern/admin-themes/hive/assets/img/sprite.svg [HTTP/1.1 200 OK 96ms]
GET
http://mysite.tld/textpattern/admin-themes/hive/assets/img/ui-icon-sprite-info.svg [HTTP/1.1 200 OK 172ms]
GET
http://mysite.tld/textpattern/admin-themes/hive/assets/img/ui-icon-sprite-333333.svg [HTTP/1.1 200 OK 215ms]
Anything unusual?
Last edited by uli (2018-11-03 23:25:56)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
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
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
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
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
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
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.
Txp Builders – finely-crafted code, design and Txp
Offline
Offline
#23 2018-11-05 13:58:14
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
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
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.
Txp Builders – finely-crafted code, design and Txp
Offline