Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Fatal error
This topic contains 26 replies, has 2 voices, and was last updated by Angel Nuñez Gonzalez 6 years, 10 months ago.
- AuthorPosts
- November 8, 2016 at 6:57 pm #10774
Hi Every time I try to sear
Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Argument ID must be numeric and greater than 0.’ in /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:28 Stack trace: #0 /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals.php(29): WPML_Translation_Element->__construct(-10, Object(SitePress)) #1 /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals.php(51): WPML_Canonicals->must_filter_permalink(-10) #2 /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/inc/url-handling/wpml-url-filters.class.php(128): WPML_Canonicals->permalink_filter(‘http://welcomet…’, -10) #3 [internal function]: WPML_URL_Filters->permalink_filter(‘http://welcomet…’, Object(WP_Post)) #4 /usr/home/welcometoibiza/www/wp-includes/plugin.php(235): call_user_func_array(Array, Array) #5 /usr/home/welcometoibiza/www/wp-includes/link-template.php(238): apply_filters(‘post_link’, ‘http://welcomet…’, Object(WP_Post), false) #6 /usr/home/welcometoibiza/www/wp-content/plugins/super-socializer/super_socializer.php(600): get_permalink(-10) #7 [internal function]: the_champ_frontend_scripts(”) #8 /usr/home/welcometoibiza/www/wp-includes/plugin.php(524): call_user_func_array(‘the_champ_front…’, Array) #9 /usr/home/welcometoibiza/www/wp-includes/script-loader.php(1197): do_action(‘wp_enqueue_scri…’) #10 [internal function]: wp_enqueue_scripts(”) #11 /usr/home/welcometoibiza/www/wp-includes/plugin.php(524): call_user_func_array(‘wp_enqueue_scri…’, Array) #12 /usr/home/welcometoibiza/www/wp-includes/general-template.php(2555): do_action(‘wp_head’) #13 /usr/home/welcometoibiza/www/wp-content/themes/sahifa-child/header.php(8): wp_head() #14 /usr/home/welcometoibiza/www/wp-includes/template.php(572): require_once(‘/usr/home/welco…’) #15 /usr/home/welcometoibiza/www/wp-includes/template.php(531): load_template(‘/usr/home/welco…’, true) #16 /usr/home/welcometoibiza/www/wp-includes/general-template.php(45): locate_template(Array, true) #17 /usr/home/welcometoibiza/www/wp-content/themes/sahifa/search.php(1): get_header() #18 /usr/home/welcometoibiza/www/wp-includes/template-loader.php(75): include(‘/usr/home/welco…’) #19 /usr/home/welcometoibiza/www/wp-blog-header.php(19): require_once(‘/usr/home/welco…’) #20 /usr/home/welcometoibiza/www/index.php(17): require(‘/usr/home/welco…’) #21 {main} thrown in /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 28
November 8, 2016 at 7:46 pm #10775Hi,
I’ve tried to search multiple phrases, but I’m not seeing the error message anywhere: https://i.imgur.com/y6rrFRf.png
I doesn’t look like it’s directly related to the search, at least I don’t see a reference in the error message. Let me know how can I re-create it.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 9, 2016 at 1:05 pm #10794ok now looks its works but
Could you try search for “BPM” … show a post from 2014 but not the one we didi 2 days agoNovember 9, 2016 at 2:30 pm #10799Hi!
I guess you might be using the search cache. It does not clear automatically to perserve performance.
On the Cache Settings submenu, you can clear it by clicking on the Clear the Cache! button.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 9, 2016 at 4:49 pm #10811the how works the cache .. and if we publish every day .. don’t not update ??
also it show the resouds on the sidebar ( magazine ) where should be a post from the blog by ULTIMATE SHORTCODENovember 9, 2016 at 5:30 pm #10813Hi!
I’ve found the reason for the “magazine” widget override and fixed it via FTP. I will include the fix in the upcoming update, so you don’t have to worry about it.
The cache automatically deletes after the caching interval only. If you want to delete it when creating a new post, you can add the following code to the functions.php file in your active theme directory (add from line 3):
This will trigger the clear procedure on post update. Make sure to have a copy of everything before making modifications!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 10, 2016 at 1:57 am #10816I just clear the cache but its the same, also desactivate cache
Also
pinturas Rubio .. show rig on the ajax but not ant the result page
http://welcometoibiza.com/guia-de-ibiza/material-bellas-artes/pinturas-rubio/November 10, 2016 at 8:46 am #10821Hi!
pinturas Rubio .. show rig on the ajax but not ant the result page
Because you have the Relevanssi plugin enabled. It overrides the Ajax Search Pro search results override again. If you de-activate Relevanssi, it will work.I just clear the cache but its the same, also desactivate cache
It’s because you also had the ordering set to “Title Descending” and “Date descending” on the General Options -> Ordering panel. If newer posts are more important, I have changed them as following: https://i.imgur.com/7vvT9o1.pngYou also have a lot’s of posts, so I don’t recommend using “Exact matching” and the “Secondary Logic” together. The secondary logic is more than enough, and it saves you a lot of performance: https://i.imgur.com/Yc67HmL.png
Best,
You can change it back of course if you want to.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 10, 2016 at 9:21 pm #10830Hi Thanks a lot
Now I de-activate Relevanssi ..
BPM not show the last one
works for pinturas rubio
Cala costa ., cala bass, pacha .. works on ajax but the you hit
give me the Fatal Errorthis is a new post
http://welcometoibiza.com/agenda-ibiza/fiestas/sneak-beats-celebrando-el-cumpleanos-de-dj-sneak-en-pacha-ibiza/
if you put sneak beats.. not apear…If I search for “musica en directo”. How can i do to shows this post the first one
http://welcometoibiza.com/agenda-ibiza/magazine/musica-en-directo-ibiza/
“hamburguesas”
http://welcometoibiza.com/agenda-ibiza/magazine/restaurantes-hamburguesas-irresistibles-ibiza/
“comer Carne en Ibiza”
http://welcometoibiza.com/agenda-ibiza/magazine/restaurantes-de-carne-en-ibiza/Will be great if you ad a function to show/search first on a specific taxonomy …
Also I saw a “AJS PRO settings” tab but only in the wp post .. Why it not show on custom post ???
will be great also the option to import the key words from the YOAST seo key works .. also if we can give maximum relevance to a this Yoast set key words as integration with sea plugins …
Wich page use to show the results ?? every time it show then I a different one .. ( check the sidebar )..Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Argument ID must be numeric and greater than 0.’ in /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:28 Stack trace: #0 /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals.php(29): WPML_Translation_Element->__construct(-10, Object(SitePress)) #1 /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals.php(51): WPML_Canonicals->must_filter_permalink(-10) #2 /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/inc/url-handling/wpml-url-filters.class.php(128): WPML_Canonicals->permalink_filter(‘http://welcomet…’, -10) #3 [internal function]: WPML_URL_Filters->permalink_filter(‘http://welcomet…’, Object(WP_Post)) #4 /usr/home/welcometoibiza/www/wp-includes/plugin.php(235): call_user_func_array(Array, Array) #5 /usr/home/welcometoibiza/www/wp-includes/link-template.php(238): apply_filters(‘post_link’, ‘http://welcomet…’, Object(WP_Post), false) #6 /usr/home/welcometoibiza/www/wp-content/plugins/super-socializer/super_socializer.php(600): get_permalink(-10) #7 [internal function]: the_champ_frontend_scripts(”) #8 /usr/home/welcometoibiza/www/wp-includes/plugin.php(524): call_user_func_array(‘the_champ_front…’, Array) #9 /usr/home/welcometoibiza/www/wp-includes/script-loader.php(1197): do_action(‘wp_enqueue_scri…’) #10 [internal function]: wp_enqueue_scripts(”) #11 /usr/home/welcometoibiza/www/wp-includes/plugin.php(524): call_user_func_array(‘wp_enqueue_scri…’, Array) #12 /usr/home/welcometoibiza/www/wp-includes/general-template.php(2555): do_action(‘wp_head’) #13 /usr/home/welcometoibiza/www/wp-content/themes/sahifa-child/header.php(8): wp_head() #14 /usr/home/welcometoibiza/www/wp-includes/template.php(572): require_once(‘/usr/home/welco…’) #15 /usr/home/welcometoibiza/www/wp-includes/template.php(531): load_template(‘/usr/home/welco…’, true) #16 /usr/home/welcometoibiza/www/wp-includes/general-template.php(45): locate_template(Array, true) #17 /usr/home/welcometoibiza/www/wp-content/themes/sahifa/search.php(1): get_header() #18 /usr/home/welcometoibiza/www/wp-includes/template-loader.php(75): include(‘/usr/home/welco…’) #19 /usr/home/welcometoibiza/www/wp-blog-header.php(19): require_once(‘/usr/home/welco…’) #20 /usr/home/welcometoibiza/www/index.php(17): require(‘/usr/home/welco…’) #21 {main} thrown in /usr/home/welcometoibiza/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 28
November 14, 2016 at 5:22 pm #10846Hi,
>> Cala costa ., cala bass, pacha .. works on ajax but the you hit
give me the Fatal Error
It was an issue related to WPML translations, as the category override names had a negative ID, which caused the problem.>> this is a new post
http://welcometoibiza.com/agenda-ibiza/fiestas/sneak-beats-celebrando-el-cumpleanos-de-dj-sneak-en-pacha-ibiza/
if you put sneak beats.. not apear…Because you have search caching enabled, and not using the code I suggested to clear the cache + you had only one category included to show results from. I have disabled the cache, so it will display now.
>> If I search for “musica en directo”. How can i do to shows this post the first one
http://welcometoibiza.com/agenda-ibiza/magazine/musica-en-directo-ibiza/
“hamburguesas”
http://welcometoibiza.com/agenda-ibiza/magazine/restaurantes-hamburguesas-irresistibles-ibiza/
“comer Carne en Ibiza”
http://welcometoibiza.com/agenda-ibiza/magazine/restaurantes-de-carne-en-ibiza/There are options to prioritize certain results over others, but it’s only global, not per search query, it’s not possible yet: https://goo.gl/4Z7xbj
I’m working on an update for priorities and statistics – but it’s a long way to go as it massively affects the performance.>> Also I saw a “AJS PRO settings” tab but only in the wp post .. Why it not show on custom post ???
I’ve enabled it for you to display on all post types. It was changed in the previous versions, because it was displayed in many undesired post types as well.
>> will be great also the option to import the key words from the YOAST seo key works .. also if we can give maximum relevance to a this Yoast set key words as integration with sea plugins …
I will definitely consider this as an option.
Also, the error messages should be gone now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 14, 2016 at 5:52 pm #10848Thanks a lot for your support …
I going to keep using the plunging in specific places .. i will let you know for more HelpAs a sugestión for neta updates
about
>> If I search for “musica en directo”. How can i do to shows this post the first one
http://welcometoibiza.com/agenda-ibiza/magazine/musica-en-directo-ibiza/
“hamburguesas”
http://welcometoibiza.com/agenda-ibiza/magazine/restaurantes-hamburguesas-irresistibles-ibiza/
“comer Carne en Ibiza”
http://welcometoibiza.com/agenda-ibiza/magazine/restaurantes-de-carne-en-ibiza/I have all in the same category.. then if we have the chance to show first the post on a specific categories as a relevance or priority we well solved
November 14, 2016 at 6:36 pm #10849One more question
If I search for PACHA IBIZA
why the first post it show its
http://welcometoibiza.com/restaurantes/ibiza/ipizza/
http://welcometoibiza.com/restaurantes/san-antonio/restaurante-itaca/
and not
http://welcometoibiza.com/restaurantes/ibiza/restaurante-pacha/
or
http://welcometoibiza.com/fiestas-ibiza/discotecas/pacha-ibiza/ THIS ONE SHOULD BE THE FIRST ONE .. MATCH THE TITLE, THE URL ..AND ALSO THE REST OF THE LINKS ON THE TOP GOES TO THE SAME RESULTS PAGE
Attachments:
You must be logged in to view attached files.November 15, 2016 at 10:53 am #10856Hi,
It was because of two things:
1. you had the separate group ordering enabled per post type – it means that if there are results from multiple post types, some of them are prioritized over others: https://i.imgur.com/D9zzvRk.png
2. Because you also search and return terms as results, the term group priority was higher than the post type priority: https://i.imgur.com/QjeHnap.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 15, 2016 at 1:26 pm #10858Ok Thanks ..
Sorry but I not a english speaking and the documentation jus explain where is every thing but not very well how its works ..
Now i Search for pacha ibiza
i get the 4 first resells right .. but “Destino” its twice ( same post) and the rest should be newest post from “agenda-ibiza” post type but the post its show are from 2015…
what about al the 2016 ..
or this one from this weeK?
http://welcometoibiza.com/agenda-ibiza/fiestas/sabado-gusto-retro-pacha-ibiza-la-fiesta-vintage/
What i need its to show the results like thatName of the palace ( fiestas/ restaurantes postype)
latest Post about the place ( agenda ibiza post type)Thanks
November 15, 2016 at 1:56 pm #10859Hi,
The result is display twice, because it’s not actually the same object. You have a duplicate of that post.
See:
http://welcometoibiza.com/wp-admin/post.php?post=114119&action=edit&lang=es
http://welcometoibiza.com/wp-admin/post.php?post=115379&action=edit&lang=esThese are the same, but different IDs (114119, 115379).
The ordering was incorrect, because I forgot to switch it back after testing. It should be better now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.