This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 18,408 total)
  • Author
    Posts
  • in reply to: Search results questions #57339
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Error 500 in host access log #57337
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Okay, thank you for the information.

    All right, so if there is nothing in relation in the error log, then those might be bfrom botted/automated requests as they suggested, which have been caught in the firewall but still flagged as “internal server error 500”. There is also a defense try->catch statement around the handler, which will signal an error state when malformed data is sent, so the server doesn’t have to deal with it. However that would be logged in the error log for sure, so I am guessing it is the automated requests.

    For now you can safely ignore it in my honest opinion, there is no sign of any serious issue behind it. If it comes back regularly, then let me know. In that case I will have to do an in depth code debugging via (s)FTP to try to re-create the problem.

    in reply to: Search results questions #57335
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search results questions #57333
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search results questions #57331
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Fatal Error with Ajax Search Pro on PHP 8.2 — Urgent #57330
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    Unfortuantely this is unrelated to the plugin settings, the snippet is to do a client side correction on the arguments passed in the results.

    In case you will have it somewhere public, I will check it out to see why the snippet isn’t doing it’s thing.

    in reply to: Fatal Error with Ajax Search Pro on PHP 8.2 — Urgent #57323
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: WP/ Search not populating #57318
    Ernest MarcinkoErnest Marcinko
    Keymaster

    No worries! I just released an in-depth video on different compact box use-cases, in case you are interested.

    in reply to: Divi 5 Results Page Settings #57316
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank you for letting me know!

    I can’t replicate this issue though. I have the same layout set, flex with the same parameters, even the numeric values, but all is okay, so I’m not sure what is the cause there. The update should not affect that, it only adds a single line to trigger a module loading, so it shouldn’t change anything related to that.
    Can you try clearing all layers of cache, especially the browser cache?

    In case you will have this somewhere up where I can test it let me know, I will do a debugging session on it.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Stuart,

    I see. I am not sure if this should be patched, as I feel this should be intentional for most cases, but I will definitely consider it.

    You can actually fix this through a code snippet, but as you noticed this is on the client side, not on the server side. This should do the trick:

    add_action('wp_footer', function () {
    	?>
    	<script>
    	window.addEventListener("load", () => {
    		document.querySelectorAll(".asp_main_container").forEach((el) => {
    			el.addEventListener("asp_results_show", (event) => {
    				// event.detail carries the arguments
    				const [id, instance] = event.detail;
    				document.querySelectorAll(".asp_r_" + id + '_' + instance + ' .asp_res_url').forEach((el)=>{
    					const url = new URL( el.getAttribute('href') );
    					let phrase = url.searchParams.get('asp_highlight');
    					if ( phrase !== null ) {
    						phrase = phrase.replace(/[!?]/g, '');
    						url.searchParams.set('asp_highlight', phrase);
    						el.setAttribute('href', url.href);
    					}
    				});
    			});
    		});
    	});
    	</script>
    	<?php
    });
    in reply to: Polylang integration problem #57311
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: WP/ Search not populating #57310
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes – through the compact box layout. It is a pop-out search style, good for narrow/navigation areas.

    in reply to: PDF Thumbnails aren’t generating #57309
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are welcome!

    Correct – The results page design/layout is out of the scope of the search as it is controlled by the theme. Usually it is passed to the search.php and then whatever is required in that file, it varies for every theme. In your case it is very likely the content-search.php as you pointed out.

    To get the thumbnail URL you may have to use something like:

    wp_get_attachment_image_url( get_the_ID() );

    in reply to: PDF Thumbnails aren’t generating #57307
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details, it helps a lot!

    I have logged in to check, and there is indeed something missing as WordPress itself should automatically generate covers for PDF documents during upload. The most likely cause is that ghostscript is not installed, it is not well documented, but WordPress needs that to generate thumbnails.

    If those thumbnails are not present, Ajax Search Pro will try alternative methods via ImageMagick, but the extension has to have access to PDF documents. It can be enabled via the policy file. Without that the script has no access to the PDF files. Correcting the policy file will very likely resolve the issue.

Viewing 15 posts - 76 through 90 (of 18,408 total)