I have a weird bug with my prestashop 1.7.4.3, but I wouldn't like to reinstall it so im writing here.
There are like 20 errors in console on homepage, but the main one is -
"Uncaught ReferenceError: prestashop is not defined".
I don't know why, but JQuery is not loading too. The problem is that it is only happening at the homepage. On subpages or product pages there is everything alright (and this prestashop var is also initialized). I was searching through the code for like 2 hours and couldn't find anything that is cause. Many features at homepages are not working (slider, menu on mobile version etc.). These features work on other pages than index.
If anyone knows what could it be or how to fix it, I will appreciate it
Related
I generate a Focus Keyphrase and Meta Description in Yoast SEO meta box for my Home Page. But when I exit the editor, if I go back to the Home Page, the Focus Keyphrase and Meta Description have disappeared.
Does anyone know how I can keep them?
Thanks
I spent easily 5 hours trying to track down and fix an issue with Yoast meta fields not saving properly. The only real clue I had was this console error:
Uncaught TypeError: Cannot read properties of undefined (reading 'registerPlugin') at window.wpseoScriptData.window.wpseoScriptData.featuredImage.i.registerPlugin (post-edit.js)
Based on this Yoast Github issue, it appears that the needed YoastSEO javascript app is not there when it's being called in /wp-content/plugins/wordpress-seo/js/dist/post-edit.js when the page is loading, and Yoast javascript app is not actually there, so it bonks.
So there may be something somewhere that is dequeuing the needed javascript that builds the YoastSEO object. One thing to check is to search your code base (excluding the Yoast plugin itself) for instances of wpseo, yoast, etc. If you find some code that is dequeuing/removing something, that might be it. If you have a plugin with results, deactivate if you can and check if that fixes anything.
I also noticed that the SEO Analysis drawer never loads and has the loading spinner running indefinitely. The javascript that controls the setting fields seems to work, but when you save it doesn't actually save, it just goes into the void.
All that said... I wasn't able to figure out what was wrong, but I did get it to start working again. Here's what worked for me...
After reading through a lot of different issue threads, I stumbled across some issues around security plugins blocking parts of the install process. I have my Wordfence settings dialed up pretty strict, so I deactivated it per recommendations while we go through re-installing Yoast.
After making sure that your security plugin(s) are deactivated, then deactivate and uninstall Yoast. Apparently you don't need to remove the plugin data, just uninstall. (This is also a good time to update other plugins if you haven't already).
Once you reinstall Yoast, you should have a button available to reindex the "indexables" that you need to click. It might be on the Dashboard, I don't remember. If you don't see it, you might go to Search Appearance > General > Rewrite tables > Force rewrite titles and Enable that, then save changes. I'm not 100% positive, but it seemed like after I did that, there was a panel in the General settings Dashboard or something, that said something along the lines of "Looks like some settings have changed, you should re-index your indexables now" with a button to start the process.
I also had to turn "Show SEO settings for Posts/Pages?" back on under Search Appearance > Content types. After I reinstalled, those were disabled. So maybe that helped Yoast know to load the javascript properly.
I'm not super familiar with Yoast, as you can probably tell, but after doing all this, it's working.
I believe you can also trigger the reindexing process from the CLI if you want, and that it's recommended if you have a large site with over 10k posts or whatnot.
Hope all this helps!
I recently joined a team working on a nuxt js frontend application. Since the beginning, I could not make the project run properly in terms of styling.
Styles, classes, are correctly loaded in the html, I can clearly see them in the code inspector.
Though, it does not behave like it normally should (See picture 1). I compared nearly everything with the other developers and impossible to find a fix.
Did any of you already have such an issue ? And any idea of how to fix it ?
Thank you
Small example of the styling issue I have between 2 menus
I am new to Odoo 9 (and openerp in general) and I am trying to follow the website builder tutorial here but I still can't figure out why my controller is not working :
I get the '404 Page not found' error everytime I go to the indicated route even though I followed the exact same steps.
Can anybody help me out with that?
Thanks!
I had the same problem, the solution is to restart odoo each time a new route is added.
I've tried following the Get Started example from the Durandal homepage, and just get..
I've refreshed the files from the Starter app / example, and followed the Get Started tutorial once a few weeks ago, and twice again today, and just get the numbers as above, not the expected form to type a name into.
Where do I even go to start debugging this issue?
I would start by pressing "F12" and opening the browser debugging console, to see if all the files have come down. There may even be some syntax errors as well.
The HotTowel template by John Papa is also worth a look.
If you are just starting out with Durandal, also have a look at Aurelia, which is effectively the next version of Durandal.
I recently installed WP E-Commerce thinking it would be a snap to get a simple store running but after installation, no matter what page I go to, Wordpress loads the products page. I didn't change anything about my code and WP EC comes set to only appear on its "Products Page" so this doesn't make any sense to me.
Why is nothing ever as simple as it claims... why is there always some minor mystery snag that complete halts progress?? Frustrated.
Input or experience with this problem is highly appreciated.
I found changing the permalink structure (and then changing it back if desired) fixed this very odd problem. It's mentioned on this thread: http://wordpress.org/support/topic/plugin-wp-e-commerce-pagination-for-products-not-working