Wrong image path updating from prestashop 1.4 to 1.6 - prestashop

After two intense days of messing with Prestashop, I'm facing a problem, and my numerous searches gave nothing.
I have to update a prestashop ver. 1.4 to 1.6. Once I updated, product images won't show :
the website is looking for a path like this src="http://siteurl.com/86-home_default/arbre-a-chat-amelia.jpg...
But on our server, files are using another structure : http://siteurl.com/img/p/8/6/ etc...
I tried with and without "legacy mode" (I can't modify php safe mode). There's no sign of any "move" option in prestashop 1.6 admin, and tricks to made this button appear (on 1.5) won't work.
Is there any way to edit how images are found? After trying to update from scratch again and again, is this safer to "just" update to 1.5.x, and then 1.6?
I'm sorry if there is only few elements here, but any help is much appreciated and I'll do my best to explain missing points if needed.

I had got the same problem but updating from 1.4 to 1.5. My problem was that the new template of 1.5 uses images in this way *_default (home_default, small_default, etc). When I updated the images weren't shown because the path referenced was wrong. The solution for me was add "_default" in Preferences -> Images to every image type and then click in Regenerate images.

Somehow urls were broken, maybe from too much legacy mode switching... Neither friendly URL desactivation or image regeneration worked.
Managed to "workaround" this by copying an old backup on wamp, in order to have safe_mode off... Then, this "move images" button was here, and totally functionnal, with image regeneration and all I needed (I don't know why I haven't thought about it earlier...).
Thanks for your support !

Related

Prestashop cache won't clean

Currently I'm working with the newest prestashop version (1.7.x) and the theme called Leo Fashion Store. I'm trying to edit CSS file, however, as soon as I make the edit, changes won't show. It does show immediately after saving the new file but it disappears quickly. It seems the system is taking only cached files.
Caching has been fully disabled through "Performance" settings but it still takes the cached files instead of directly from the main CSS file.
Are there any solutions?
I sometimes use Leo Themes and got the same issue, you should solve it by save again all the theme profiles. You can find the profiles in backoffice under "AP Pagebuilder" menu voice. Hope it helps.
Simone
PS: This is more a comment than an answer but I still cannot comment because of low ranking
Theme CSS files are being compressed in a unique minfied CSS (usually stored in theme dir under assets/css/theme-xxxx.css) - See the "Smart CSS cache" option in the Perfomance Page and make sure it is disabled , or just disable/re-enable it to regenerate the compressed file after your modification.
If this does not help, make sure that there is no CDN or server-level cache that can serve stale date and also make sure that the theme don't use its own dedicated cache for CSS (never seen this in PS 1.7 , though)
To clear the cache, also delete (manually or with a file manager) the /var/cache/ directory.
it would be easier to understand if you gave us your website address.

Bootstrap carousel doesn't start automatically

It may appear a repeated question but it is a serious one and I found no solution for it in any related question.
I have downloaded a bootstrap theme from ShapeBootstrap website
Demo theme
I use Firefox 30. As you may see in the demo page too, the slider doesn't start automatically! however if one click on the next slide it starts running!
I did anything I read in the similar questions but nothing happened!
The order of scripts is OK
It is in the end of file
No error reported in console ...
You can view and follow the source code of the demo page. Everything is in its place. But I wonder why it has this problem even in the official website of the theme.
Please guide me what can I do.
To understand what was going wrong was difficult!
I replaced the carousal section(html) with this one from http://startbootstrap.com/templates/full-slider/
I added full-slider.css to the list of my css files and used the latest version of bootstrap script and now it works!

There is a question mark in my prestashop window. It wasn't there before

I just opened my store today. Before hosting firm directed my domain name to my IP there was no problem.
When I the site is activated some people wanted to change some links. I did that in a hurry maybe that caused an error. Later when I check my site I saw a big question mark on the right. I put all of the files back from my backup but the problem still exists. Is there anyone who can help me?
Thank you
FERDA
This is a missing image. Whenever an image (products, categories etc) is missing in prestashop, this question mark image is shown. It is 404.gif (or any other image format) placed in the img folder of the prestashop.
There may be two reasons to this issue:
1) At header section, it seems like you have a missing image (i think one of the social icons). This is the recommended case. Please check your images. I think it is one of the icon for social images.
2) This may be not the reason, but whenever there is some problem in the paths for images, prestashop display the 404 or question mark image. But it seems like paths are fine as other images are shown.
Proposed Solutions : First check in F12 tool (dont know what is it called :P ) that specific element i.e. right click on that question mark image and then select the Inspect Element, you will have the F12 tool opened. Check there and share the HTML code. Also please share some code before and some after that, so that it can be easily checked.

Displaying PDF on website using pdf.js

I want to put a file sample.pdf on my website, and want it to be displayed using pdf.js. What I want is to display my own file like the demo, with a toolbar, zooming in/out, etc. So far I can't do that yet.
I did check out the helloworld example, but it simply shows the file like an image, without toolbar, zooming in/out, etc. When I put another file with many pages instead of helloworld.pdf, it just shows the first page.
I am not quite sure what you are looking for but I was able to get this working exactly like the demo. Although you may not want to use that example viewer for your project, you can use the working code as a starting point for your own requirements.
For a simple test you can just clone the project somewhere under a web server into a directory like myproject and visit http://yourservername.com/myproject/web/viewer.html. You should see the pdf appear. This can be a starting point to working with this project. I did this running a very basic Apache server on Linux.
If you are not looking for an example styled like that the demo above you can also see this jsbin from the docs that show how to do something completely customized with working next/previous buttons to move between the pages (as you mentioned you were only seeing the first page).
As a note, it seems that this library does not work properly with Safari. You can see an issue about it here. Unfortunately this makes it unusable for me now as I need to support all current browsers.
Also, remember to watch for the warnings concerning CORS.

Every page now showing products page after install of WP E-Commerce

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