[Solved] Script error, where to add if

I notice your usage of “photos”, but I don’t see the variable being declared anywhere… At least, inside the main function (since it won’t be global), declare your photos var: var photos = []; Aditionally, like Chris says, always check if the var is defined. 🙂 Source: https://stackoverflow.com/a/17748905/2599797 if (photos) // Simple if (typeof(photos) != … Read more

[Solved] Site’s gone down…cant figure it out :/

Pretty sure something is wrong with your WordPress core files. Try re-installing the WordPress. Here’s how you can do it without losing your existing site data. Keep the wp-content folder and wp-config.php file in a safe place. And delete everything else from your wordpress installation directory. Download WordPress From https://wordpress.org/download/ Extract all files. And Replace … Read more