Free personal pages display issue

Solved
Denizay Posted messages 110 Status Member -  
jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   -
Hello,

I recently hosted my site on free.fr, but when I transfer my pages, they don't display correctly online.

That is to say, the .css files don't seem to be taken into account.

The site displays correctly locally but not online. Is that normal? How can I fix this issue?

5 answers

  1. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977
     
    Hello,

    For example, it's that your file paths are not correct. Or what often happens is that a web server is generally under Linux. With this OS, file paths or names are case-sensitive, whereas this is not the case on Windows.

    Index.htm on Linux is different from index.htm

    Advice if you are developing on Windows, put everything in lowercase, names of directories and files and make the change in the sources as well.

    Best regards
              a stranger is a friend you haven't met yet.
    0
    1. Denizay Posted messages 110 Status Member 3
       
      Hello,

      Thank you for the response.
      I checked, and all my paths are indeed in lowercase. The access path is the same as locally, for example: css/style.css or for a photo: photos/photo_de_bebe.jpg

      I still don't see where the issue is coming from.
      0
    2. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977 > Denizay Posted messages 110 Status Member
       
      To move forward, we would need you to provide the website address, if you can.
      0
    3. Denizay Posted messages 110 Status Member 3
       
      Here is the website address: lenaphotography.free.fr

      As you can see, all the pages have a serious display issue.

      And if you know about it, check the "contact" page where a piece of code is displayed for some reason.
      0
    4. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977 > Denizay Posted messages 110 Status Member
       
      I need you to provide the entire structure of your site.

      Because the photo http://lenaphotography.free.fr/photos/photo_de_bebe.jpg does not exist under that name, nor does http://lenaphotography.free.fr/photos/bebe/p_ethan.jpg

      P.S.: You shouldn't disable right-clicking; it's annoying and unnecessary because one can still retrieve the source code by going to file/save as.
      0
    5. Denizay Posted messages 110 Status Member 3
       
      For the file photo_de_bebe.jpg it was just an example, but photos/bebe/p_ethan.jpg is indeed a photo in one of the folders.

      How can I share the site's structure?
      Do you think it's always a path problem or not?

      Right-clicking is one way to protect the photos; I haven't found any other method. Do you have any ideas for that? (besides the possibility of watermarking the photos)
      0
  2. Denizay Posted messages 110 Status Member 3
     


    Here are the screenshots
    0
    1. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977
       
      this link works: http://lenaphotography.free.fr/photos/a17.png

      so it must be the paths

      your photos/Bebe has an uppercase letter which is not the same as photos/bebe
      0
      1. Denizay Posted messages 110 Status Member 3 > jee pee Posted messages 31872 Registration date   Status Moderator Last intervention  
         
        Oops, indeed there was a capital letter in /bebe that I just corrected now. But that doesn't explain why the photos are not displaying since the other subfolders were also in lowercase and they are not displaying either.

        The link is still available, I invite you to take a look.

        Also, even typing http://lenaphotography.free.fr/photos/bebe/p_ethan_1.jpg for example, the page does not display. Yet, in the /photos folder and the /bebe subfolder, there is a photo named p_ethan_1.jpg.
        0
  3. Denizay Posted messages 110 Status Member 3
     
    An example of my tree by clicking on photos/animals

    [http://static.ccm2.net/www.commentcamarche.net/pictures/r06AeKejzrp4IYHmoz1HPHnr3JJJfs7CEE8p4T4HP0SMWizcDwFqFusg09EAxiW3-arbo3.png [image:http://static.ccm2.net/www.commentcamarche.net/pictures/r06AeKejzrp4IYHmoz1HPHnr3JJJfs7CEE8p4T4HP0SMWizcDwFqFusg09EAxiW3-arbo3-s-.png|572px||center]|fancy]
    0
    1. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977
       
      same, because your file extensions are in uppercase

      p_animaux.JPG different from p_animaux.jpg
      0
    2. Denizay Posted messages 110 Status Member 3
       
      Even that counts?! Alright, I'll fix that. However, on the photo itself, it refuses to let me modify it, so I have to go change that in the .html code.
      0
      1. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977 > Denizay Posted messages 110 Status Member
         
        The photo must be open on the website, that's probably why you can't modify it. You'll need to wait a bit.

        Don't change your sources, there needs to be real logic: all lowercase.
        0
    3. Denizay Posted messages 110 Status Member 3
       
      You are great! Indeed, it's already better. I'm finally making progress step by step.

      All I have left is to fix the contact form issue and understand why the menu at the top of the pages is not visible on mobile.
      0
  4. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977
     
    For contact, you insert PHP code into an HTML source.

    The PHP code cannot execute. The source needs to have a .php extension (like contact.php)

    But it's not that simple; HTML and PHP are two different "web development languages"

    Mr. Jourdain was doing prose without knowing it; doing PHP without knowing it is not that simple ;-)
    An outsider is a friend you haven't met yet.
    0
    1. Denizay Posted messages 110 Status Member 3
       
      I posted my question here if you want to see:

      https://forums.commentcamarche.net/forum/affich-34399994-formulaire-qui-ne-fonctionne-pas-avec-php#p34405389

      According to the responses, there seems to be an error in my code.

      1) The captcha is displayed but does not function, meaning a person can enter their data and submit without going through the captcha, and then the email indicates that it has been sent.
      2) The email indicates that it has been sent, but in reality, I do not receive it...

      These are my two issues with this form.
      0
      1. jee pee Posted messages 31872 Registration date   Status Moderator Last intervention   9 977 > Denizay Posted messages 110 Status Member
         
        You should indicate that your PHP code is in a .html source file; your interlocutor might better understand that it doesn't work that way.
        0
  5. Denizay Posted messages 110 Status Member 3
     
    The menu is set; it was a code issue. ;)
    0