Godaddy free hosting – Dashboard / Admin broken
-
Fresh install of WordPress 2.8.
Using Godaddy.com free economy hosting.
Website looks fine: https://www.21105oakdale.com.
I can login in to dashboard admin fine.However, it appears the dashboard has no formatting – ie, it appears it is not calling the css correctly.
(I’m a novice but have somewhat of an understanding of this stuff).
I’ve tried reinstalling the wp-admin and wp-includes folders.
I’ve tried resetting the cache and cookies.
I’ve tried refreshing the permalinks.All of the above were tips I found on the WP forums.
Unfortunately, none has worked thus far.
Any tips?
-
Stefano-
Looks like you found a fix an no worries on the English mate.
However, could you be more specific as to where you placed those 2 points in the wp-includes/script-loader.php? I’ve tried placing it in several spots but I keep breaking it more than it already was.
Hello ckliffames1,
i work with wordpress 2.8.4, italian version.
Replace line 619 in function _print_scripts():
echo “<script type=’text/javascript’ src='” . esc_attr($src) . “‘></script>\n”;
with:
// **********************************************
// Clean for godaddy free hosting
$st_data = file_get_contents( $src );
$st_data = substr( $st_data, 0, strrpos( $st_data, ‘</iframe>’ ) );
echo “<script type=’text/javascript’>\n”;
echo $st_data;
echo “</script>\n”;
// **********************************************and replace line 686 in function print_admin_styles():
echo “<link rel=’stylesheet’ href='” . esc_attr($href) . “‘ type=’text/css’ media=’all’ />\n”;
with:
// **********************************************
// Clean for godaddy free hosting
$st_data = file_get_contents( $href );
$st_data = substr( $st_data, 0, strrpos( $st_data, ‘</iframe>’ ) );
echo “<style type=’text/css’ media=’all’>\n”;
echo $st_data;
echo “</style>\n”;
// **********************************************My dashbord work fine, with this changes and godaddy free hosting.
Wow, that’s fantastic, thank you ‘stefano.torricelli’. Your solution worked great, except the godaddy ads at the top of my dashboard multiply by five when I’m on my main page. I’m not complaining, just letting you know, in case you happen to know why it’s doing that.
Every action in the admin panel produces more ads. I have like 20 at the top of my page now.
Ads godaddy is very very very …
Godaddy add ads as an iframe at end of the page this is the very problem.
I add this script at end every page where i want to hide ads …I use in my wordpress site the theme pyrmont-v2 this is located in:
/wp-content/themes/pyrmont-v2, change the pyrmont-v2 with your theme, then open the script footer.php, this ends with </body></html>.
Replace </body></html> with:</body> <script type="text/javascript"> function hideGoDaddy(){ if( ! ( null === document.getElementById( "conash3D0" ) ) ) { gDaddy = document.getElementById( "conash3D0" ); if( 'none' === gDaddy.style.display ) {} else { gDaddy.style.display = 'none'; } } } setInterval("hideGoDaddy()", 1500); </script> </html>
Now when you access to your wordpress home page the godaddy banner show for little time then this hide.
The script is very sample if you apply this to:
/wp-admin/admin-footer.php (limit the number of banner from dashboard).
/wp-login.php (hide the banner from login page)Try this and give me a feedback.
Thanks.Finally i found where is the problem.
The dashboard load every plugin with the jquery function load (ajax load) that produce a GET function, for every GET godaddy server add an ads.
Then i modified my function with that:<script type="text/javascript"> // ADS godaddy son's 1 per plugin in dashboard function hideGoDaddy(){ var bd = document.body; if( bd.childNodes.length > 0 ) { for( j = 0; j < bd.childNodes.length; j++ ) { if( 'IFRAME' === bd.childNodes[j].nodeName ) { gDaddy = bd.childNodes[j]; if( 'conash3D0' === gDaddy.id ) { if( 'none' === gDaddy.style.display ) {} else { gDaddy.style.display = 'none'; } } } } } } setInterval("hideGoDaddy()", 2000); </script>
Put this code at the end of wp-admin/admin-footer.php before of:
</body> </html>
This work fine for me, ad appear and then hide.
A productive day of study…I have this problem and it is not based off of free godaddy hosting… The load-script has an error and the css doesn’t work. What do I do?
Hello
First of all, thank you Stefano for your help.
I have modified the wp-includes/script-loader.php file with those 2 code fragments and the wp-admin/admin-footer.php for the ads.Unfortunately, I still have a problem.
My dashboard does load better than before, it is organized, but it doesn’t have any background color and I cannot move the modules; I click on the Screen Options but it doesn’t show anything.
This is a screenshot of my dashboard:
https://velese.com/wrong_dashboard.JPGCan you please help? I don’t know any code language, just tell me where to modify and what exactly, at what line, if you find the solution.
Hello velese,
the source of header for your login page is:<head> <title>Velese's Blog ? Log In</title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/> <link id="login-css" media="all" type="text/css" href="../wordpress/wp-includes/https://velese.com/wp-admin/css/login.css?ver=20090514" rel="stylesheet"> </link> <link id="colors-fresh-css" media="all" type="text/css" href="../wordpress/wp-includes/https://velese.com/wp-admin/css/colors-fresh.css?ver=20090625" rel="stylesheet"> </link> <meta content="noindex,nofollow" name="robots"/> </head>
but the source of my login page is:
<head> <title>Stefano Torricelli › Collegati</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel='stylesheet' id='login-css' href='https://www.stefano.torricelli.name/wp-admin/css/login.css?ver=20090514' type='text/css' media='all' /> <link rel='stylesheet' id='colors-fresh-css' href='https://www.stefano.torricelli.name/wp-admin/css/colors-fresh.css?ver=20090625' type='text/css' media='all' /> <meta name='robots' content='noindex,nofollow' /> </head>
the values of href in my installation was correctly and my login page appear good, but in your not, your login page appear without stylesheet css loaded.
Check your installation.
Thank you very much, I will look into it.
I think I know already what the problem is, just from analysing the differences in the code above.Could you please specify which file exactly needs to be modified? I’m just getting started with wordpress… is it wp-login.php from the main folder?
Hello velese,
you don’t need to modify any script, after the installation the login page must load every css correctly, if that is not the problem is in the installation process.
The first href in your login page is “../wordpress/wp-includes/https://velese.com/wp-admin/css/login.css?ver=20090514″ rel=”stylesheet”> but about me that must be href=”https://velese.com/wp-admin/css/login.css?ver=20090514″ rel=”stylesheet”>, i don’t know why your href is not correct, and in your home page every href are correct.Compare your login page with my: https://www.stefano.torricelli.name/wp-login, look the source code, i only added the script to hide godaddy ads at end of the page, no other modify was maded.
I suppose that your href was bad in your administration page too, but i don’t see your source code…
Excuse me if can’t you a definitive solution.I first installed my wordpress blog in the folder velese.com/wordpress and I don’t know why, but maybe when I installed it the second time in the velese.com folder, it may have kept the link with the wordpress folder…
stefano your modification works, but it breaks the WYSIWYG editor. Is there any fix for that?
Also, an easier way to get rid of the GoDaddy ads is to use this in your CSS:
#conash3D0
{
display:none;
}I put it in the theme and admin css.
Thanks moebis,
your solution for hide ads godaddy is more better than mine.Thank you all for your help.
I finally have my dashboard working properly.Still, there is one thing :))
The Icoming Links, Plugins, WordPress development blog and Other wordpress news modules just say “LOADING…” and I cannot move any of the modules around, even when the four arrows appear.I think it might have to do with the Javascript not working (I remember from when it wasn’t fixed to show up normally that it said that the javascript is not enabled, although I checked and it is – I use firefox). How can I fix that?
- The topic ‘Godaddy free hosting – Dashboard / Admin broken’ is closed to new replies.