Edit Toolbar Disappeared2 users found helpful
Problem headlines are:
1) Edit buttons disappeared after doing some work trying to enable pretty UR:s (never again!)
2) I'm using the Natural Concrete theme. I have re-installed this theme, and have also switched back and forth to other themes, with no joy.
3) I have checked header.php and footer.php as per other forum advice, and they are both looking fine.
4) I am using Chrome, but have tested in IE9 and Safari (on iPad) and still no edit buttons showing.
5) After playing with pretty URLs, and then having the initial problems with the edit toolbar, I logged out. When I tried to log back in again, my admin password wasn't recognised. I was able to re-set it, but now I don;t seem to be able to make any changes to permissions (I have switched to 'advanced' to see if there were any problems with this).
Any help would be massively appreciated!
<?php Loader::element('header_required'); ?>
Thanks for the response. Are you referring to header.php?
Probably you can already find that line from your header.php but especially if you have recently upgraded concrete5, you need this in your footer.php:
<?php Loader::element('footer_required'); ?>
Antti / Mainio
All of these problems have started after switching to pretty URLs, which looking around the forums seem to be more of a curse than a help. Is there some code I should be adding in the htaccess file that might help me?
Done that and reloaded my home mage (mrmacro.net) while logged in to C%. I got two red error lines ('uncaught syntax error - expected token'), and they relate to:
This is all Greek to me, so any ideas what I need to do with this information?
Many thanks for your help - I feel I can see light at the end of the tunnel now!
You should contact your developer to fix these up and tell him to follow concrete5 conventions and not e.g. include anything additional in index.php or config/site.php and let concrete5 do its job.
And by the way the configs issue is quite big security hole currently on your site. I could probably hack into your database with the information I see there if I wanted to.
Well there has been no development. I'm using a theme and one add-on from the marketplace, and the only messing around I've done is the pretty URLs, and to add the 'advganced permissions' setting to site.php.
Should I be trying to search for the two files mentioned in the JS error messages?
At least your site.php is wrong because it contains
But you probably have it also under that correctly (because your site is loading after all), so the part that is wrapped into HTML comments section, you should remove there.
And also you have some add-on or something that is adding some custom CSS there on top of your page for each requests (also those that are not requests for HTML pages) that should not be there.
I cannot say how exactly you can fix there, that is the reason I suggested contacting your developer. This is basically all I can do to help.
Well if I adjust the php code, the site won't load. Can you specify which bit of code you are referring to in the HTML code that I need to remove, please?
Your site.php file should look something like this, nothing else than this (or you can have your own configurations but they all should be inside the PHP-block of that file):
<?php define('DB_SERVER', 'db_server_address'); define('DB_USERNAME', 'db_username'); define('DB_PASSWORD', 'db_password'); define('DB_DATABASE', 'db_database'); define('PASSWORD_SALT', 'y3u53hEGRy4qayhYHSAE34744hwyheswaeyuY2qeh5e5hAyah45u4whyw4AGe453'); define('YOUR_CUSTOM_CONFIG', 'custom_config_value'); define('YOUR_CUSTOM_CONFIG2', 'custom_config_value2');
The other part is not probably coming from your site.php though so fixing that will probably only fix one part of your problem.
And really this is all you should have in that file. If you see e.g. "<html>" or "<body>" or "<!-- HTML COMMENT -->" in that file, that is all wrong.
A million thanks. I've just adjusted the site.php file as you suggested, and my edit buttons are back! I honestly do not know how all that html crap got into the file, but it is gone now.
Thank you so much for your patience, time and help,
header("HTTP/1.0 404 Not Found");
Removing it fixed this problem and did not affect the other one(!).
Here is what the console says:
Any idea what might be wrong?
Sry for my eng! =)