badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Ambition Theme causing problems with WordPress 4.2.2

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #26033
    ben1
    Participant

    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.

    #26037

    Hi 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!

    #26041
    ben1
    Participant

    I 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.

    #26045
    ben1
    Participant

    After 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?)

    #26065

    Hi 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!

    #26069
    ben1
    Participant

    Forgot to add the code in the email I sent back this morning:

    <a href="http://domainnamehere.com/sample-page/">Test Link</a>

    #26076

    Hi 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!

    #26078
    ben1
    Participant

    I altered the file \inc\structure\footer-extensions.php and changed the code on line 113 to the following:

    $output = '<div class="copyright">'.__( '&copy;', '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?

    #26111

    Hi 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">'.__( '&copy;', 'ambition' ).' '.ambition_the_year().' ' .ambition_site_link().' | ' . ' ' .ambition_themehorse_link().' | '.' ' .ambition_wp_link() .'</div><!-- .copyright -->';
    	$output = '<div class="copyright">'.__( '&copy;', '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/72b04c4c813247e176ae7f16d65d8250

    There may be some plugins conflict that you have installed in your dashboard.

    Thank you!

    #27359
    ben1
    Participant

    After 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.

    #27381

    Hi 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!

    #27388
    ben1
    Participant

    I’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.

    #27457

    Yes exactly ben1

    If someone will runs into the same issue then they will try your solution. Thanks for you help

    Thank you!

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.