Forum Replies Created
-
AuthorPosts
-
ben1
ParticipantI’m sure you have and I’m not disputing that fact. I simply posted the issue I encountered and how I fixed it so that if someone else runs into the same issue they can try my solution.
The problem is commonly known as the whitescreen of death (http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/) and after reading the excerpt below I checked the \inc\structure\footer-extensions.php file (because it was the only modified file) and found it had excess space at the bottom. After I removed it I didn’t have the whitescreen problem anymore.
…you should look at your theme’s functions.php file. If there are extra spaces at the bottom, then you should consider fixing it.
ben1
ParticipantAfter a lengthy amount of troubleshooting I found the problem. There was extra spaces at the bottom of the file \inc\structure\footer-extensions.php after the php tag. Once I removed the spaces the dashboard started working correctly again.
ben1
ParticipantI altered the file \inc\structure\footer-extensions.php and changed the code on line 113 to the following:
$output = '<div class="copyright">'.__( '©', 'ambition' ).' '.ambition_the_year().' ' .ambition_site_link().' | <a href="http://domainnamehere.com/sample-page/">Test Link</a></div><!-- .copyright -->';
I uploaded the file via FTP and that’s when the problems started. This is literally the only change I made to the theme and it affects the entire admin UI. Why?
ben1
ParticipantForgot to add the code in the email I sent back this morning:
<a href="http://domainnamehere.com/sample-page/">Test Link</a>
ben1
ParticipantAfter inspecting a few admin pages it looks like the problem has something to do with metabox.js and \inc\admin\ambition-metaboxes.php
I used Chrome’s native inspect tool which gave the following error:
Uncaught SyntaxError: Unexpected token < metabox.js:2
Clicking on metabox.js gives html (in a javascript file?)
ben1
ParticipantI reinstalled the theme from scratch and the issue is resolved but the problem is I’m trying to add links to the footer (ie. Privacy, Terms), so when I edit \inc\structure\footer-extensions.php and upload the updated file to the server the issue comes back again.
-
AuthorPosts