Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #911613

    Hi and thanks for a great theme and a great support forum!

    So, a few days ago we started the migration of our site from http to https, and what was seemingly quite easy quickly took a turn to the worse…

    The status right now is that we still have two (major) problems left.

    1. Our product pages are not visible
    i.e. clicking on a product from either the front page, or from a category page will return nothing, just an empty page. I suspect that this has something to do with the permalinks?

    2. Many (but not all) of our pictures are not showing. Gives broken links
    They are all located in the wp-content/uploads folder, and yes I can see them on FTP but not when i try to access them through the site. The permissions of the wp-content/uploads folder are set to 0755.

    Some steps we have taken (probably forgot about a few):
    Got ourselves a SSL certificate
    Used Really Simple SSL redirect all traffic through SSL
    Did a find and replace in the databases using WP Migrate DB (http://XXX -> https://XXX
    Moved all the media from media.xxx.se/public_html to wp_content/uploads and redirected in settings->media (all content was moved to the wp_contents/upload folder using FTP)
    Learned to never to dramatic changes to a live website…

    Any hints would be extremely helpful!

    Best regards,

    Philip

    #911650

    Hey Philip,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #911655
    This reply has been marked as private.
    #911731

    Hi Philip,

    Can you please check server log for error?

    Here is some theory on moving to SSL, maybe you get a hint there:
    http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/

    https://www.thepolyglotdeveloper.com/2014/12/force-https-pages-wordpress-site/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #911996

    Hi!

    It seems as by removing all code (see below) in functions.php of the child theme the issue of not getting to the products is solved!

    global $woocommerce;
    if( version_compare( $woocommerce->version, '3.0.0', ">=" ) ) {
    	function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
    	    return $img;
    	}
    	function avia_woocommerce_post_thumbnail_description($img, $post_id){
    	    return $img;
    	}
    }

    As for the images, it seems as when we did the SSL upgrade (and apparently also upgrades to apache and php), images that contains å, ä ö are no longer visible. By removing those characters, it seems to work. Do you know if there are any plugins that could rename the files and also make the product use the renamed files?

    For now though, everything is under control…

    Thanks for you help!

    #912049

    Hi,
    It looks like this plugin will rename the files and update the database: Media File Renamer
    There maybe others, please check.
    This plugin may help with future uploads: Clean Image Filenames

    Best regards,
    Mike

    #912518

    Hi!

    The image 404 problem is now solved after our host restored files from a backup.

    Most likely the problem is this (which is really not so obvious):

    When moving the media files from XXX to wp_content/uploads i used FileZilla on a Mac. Since FTP cannot move files directly on the server, the files first needs to be downloaded and then uploaded to the new location.

    And here is the tricky thing, Mac uses Normal Form D character encoding and alters all files (without telling) to that encoding, whereas the server expects Normal Form C encoding. When uploading the files, the filenames may appear the same but they are encoded differently -> the server cannot decode the symbols correctly since OS X forced a new encoding to the files. Luckilly I kept the the files in the old location at XXX_old, so if the host did not manage to restore the files from a recent backup, I think that the problem would have been solved by me doing the exact same maneuver as before on a windows machine…

    For your evening read on this subject, i recommend:
    https://stackoverflow.com/questions/12200901/wordpress-apache-404-error-with-unicode-characters-in-image-filenames

    https://stackoverflow.com/questions/33325761/special-characters-encoding-in-image-filenames-after-server-migration

    https://svn.apache.org/repos/asf/subversion/trunk/notes/unicode-composition-for-filenames

    This topic can be marked as solved from our end. Thank you for your support!

    /Philip

    #912580

    Hi,
    Thank you for sharing your solution, this will be helpful in the future as I use windows and so many customers use mac.
    We will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘SSL -> Product pages not visible and some images are broken’ is closed to new replies.