• Resolved icakeov

    (@itucakov)


    Hi, my website just went blank.
    I was learning about jquery and adjusting my functions file but I didn’t really change anything drastically (at least I don’t think)
    I’m building the site off of twenty thirteen through a child theme
    If anyone has any thoughts on what might have gone wrong, I’d appreciate it.
    https://www.grantarchitecturestudio.com/home/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Use FTP to remove the child theme functions file.

    First, have you tried:

    – switching to the default theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder and the wp-config.php & root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter icakeov

    (@itucakov)

    I have tried deleting the functions file online, didn’t change things.
    Just for the record I can see and access everything on wp-admin dashboard.
    I switched to the twenty thirteen default theme and it all worked fine.

    esmi, I renamed the online child folder by adding “-old”. Now I’m at the step to reset the plugins. I can still access my dashboard fine in wp-admin. Should I reset the plugins there somewhere?

    Not if the problem has gone. Sounds like it was theme-specific. Try checking your site’s error logs for messages. That should give you some idea of where the original error was. Your hosts should be able to help you accessing your site’s error logs.

    Thread Starter icakeov

    (@itucakov)

    The website is fine in the regular twenty thirteen theme but it’s just blank in the child theme, I just re-uploaded all my files. How do I check for site’s error logs? This is really odd, I didn’t do anything major and the website just disappeared.

    Modifying a functions.php file is “major” and easily crashes a site.

    Your hosts should be able to help you accessing your site’s error logs.

    Thread Starter icakeov

    (@itucakov)

    I just took the functions file back to where it was before and the site is fine now. I have to examine what I did with the functions file to see what I’m doing wrong.
    So I’m good!
    Thanks all for the help!

    If you are putting a copy of the parent theme functions file in the child, that’s the problem right there.

    Thread Starter icakeov

    (@itucakov)

    I wasn’t actually. the functions file is empty. I have jquery conflict problems on my website so I’m trying to learn about registering and enqueueing scripts through functions. That’s what I was working on and when I uploaded it, the whole website dissapeared. Looks like I really need to learn how scripting works to do this properly.

    Thread Starter icakeov

    (@itucakov)

    Thanks again WPyogi and esmi.
    I was following this info:
    https://wp.smashingmagazine.com/2011/10/12/developers-guide-conflict-free-javascript-css-wordpress/
    I’m trying to register and enqueue the scripts. and then call add_action() too. And different people suggest passing different things to add_action(), this article passes ‘init’, some passed ‘wp_home’, some ‘wp_enqueue_scrpits’. Maybe trying ‘init’ broke it all. Or something else.

    It is interesting how detailed and bug-prone jquery stuff is. Just got to be careful with it all.

    It seems to be a bit of learning curve that I have to go through.

    Thread Starter icakeov

    (@itucakov)

    Here is the difference between the two codes that is crashing the website (still)
    This is the original jquery code that I had in functions:
    https://pastebin.com/HeddVVgk
    And this is the one that breaks the website.
    https://pastebin.com/hySTh5AY
    This is all very new to me. If I could figure this code out and learn how to stop my plugins from conflicting, it would be amazing.

    Thread Starter icakeov

    (@itucakov)

    aha! I got it, what’s breaking the website is that in the header I was calling `<?php add_my_script(); ?>’ which didn’t exist anymore!

    Still doesn’t solve my jquery problem but I’ll save that for another post, thanks again for all the help.

    I had the same problem, I resolved it myself using small .htaccess code.

    Go to website filemager and edit .htaccess file with 2 these lines.

    # Use PHP5.4 Single php.ini as default
    AddHandler application/x-httpd-php54s .php

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘My website went blank’ is closed to new replies.