- This topic has 12 replies, 3 voices, and was last updated 9 years, 3 months ago by Theme Horse Support Team.
-
AuthorPosts
-
June 29, 2015 at 9:20 am #26033ben1Participant
This theme is causing problems with WordPress 4.2.2.
My work colleague can’t access the login page for the admin and when I update the discussion options I’m redirected to a blank page. The same thing happens when I add/edit a post or page. I think it may be a redirect issue of some sort because the url I’m redirected to when I update the discussion options is “domain.com/wp-admin/options.php”
Disabling the theme resolves the problem.
June 29, 2015 at 10:27 am #26037Theme Horse Support TeamKeymasterHi ben1,
We also have build our theme with this latest version 4.2.2 and its working fine without any problem. Could you once send your temporary username and password at Email Us and also with this forum Url too. We will see what the exact issue is?
We don’t think that this is theme relating issue. It must work fine in your server too.
Thank you!
June 29, 2015 at 1:54 pm #26041ben1ParticipantI 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.
June 29, 2015 at 2:44 pm #26045ben1ParticipantAfter 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?)
June 30, 2015 at 5:23 am #26065Theme Horse Support TeamKeymasterHi Benjamin,
You have customize the code and there may be some issue.
Please reinstall the fresh copy and share the code what you have added in the theme.Thank you!
June 30, 2015 at 7:43 am #26069ben1ParticipantForgot to add the code in the email I sent back this morning:
<a href="http://domainnamehere.com/sample-page/">Test Link</a>
June 30, 2015 at 11:16 am #26076Theme Horse Support TeamKeymasterHi ben1,
Can you specify the line where you have paste the above html code? Hope you have paste it in wrong place. So your admin section is showing white blank page.
We just have added a redirect link in your footer.php file as name test link. You can view it below the footer and its working fine and actually we don’t have this metabox.js file too in our ambition theme.
It will be great if you provide your footer.php code what you have added so that you are facing the problem.
Thank you!
June 30, 2015 at 11:27 am #26078ben1ParticipantI 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?
July 1, 2015 at 6:02 am #26111Theme Horse Support TeamKeymasterHi ben1,
Actually we don’t have line no 113 inside footer-extension.php. The above code you have provide is at line no 57. Adding the provide code will not affect the entire admin UI. The above code you have provided i just added in my core file.
add_action( 'ambition_footer', 'ambition_footer_info', 30 ); /** * function to show the footer info, copyright information */ function ambition_footer_info() { //$output = '<div class="copyright">'.__( '©', 'ambition' ).' '.ambition_the_year().' ' .ambition_site_link().' | ' . ' ' .ambition_themehorse_link().' | '.' ' .ambition_wp_link() .'</div><!-- .copyright -->'; $output = '<div class="copyright">'.__( '©', 'ambition' ).' '.ambition_the_year().' ' .ambition_site_link().' | <a href="http://domainnamehere.com/sample-page/">Test Link</a></div><!-- .copyright -->'; echo $output; }
But there is no any effect. Its working fine. So there may be another issue. The issue is not create by the above provided link.
View this below screenshot and its working fine too.
http://www.awesomescreenshot.com/image/370650/72b04c4c813247e176ae7f16d65d8250There may be some plugins conflict that you have installed in your dashboard.
Thank you!
August 17, 2015 at 3:07 pm #27359ben1ParticipantAfter 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.
August 18, 2015 at 5:22 am #27381Theme Horse Support TeamKeymasterHi ben1,
We have tested our theme in our working environment and its working fine and also not having any issue with other clients too.
Thank you!
August 18, 2015 at 7:31 am #27388ben1ParticipantI’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.
August 19, 2015 at 5:57 am #27457Theme Horse Support TeamKeymasterYes exactly ben1
If someone will runs into the same issue then they will try your solution. Thanks for you help
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.