Hi,

I am working on my first project in drupal, and i've just developed my own theme, i followed the process of copying Garland theme and making changes to page.tpl.php file, but i am facing an issue that:

1) I can't see a normal edit profile tab/link for logged in registered user whereas it appears for all other themes.

2) Error messages are not appearing although validations are working alright.

Please suggest me a solution to this issue, I've googled for those issues as well, but, i haven't been able to find a solution for those issues.

Looking forward for some replies.
Thanks,
Kul.

Comments

vm’s picture

my best advice is to use a tool and comare garland page.tpl.php and your custom tpl.php file and go over your changes line by line.

Have you tried switching back to default garland to see if the problem is in both themes?

kuldeepkaundal’s picture

Thanks for replying!

Yes, i did exactly that, n switched over to all the other themes including Garland theme, and i could see those tabs like edit profile and logout on my account page, but, they don't seem to appear for my theme only:(

drupalhooked’s picture

add this in the bottom of url tpl files to check if these variables have some values

<?php 
echo " tabs html>> ",$tabs," tabs2 html >> ",$tabs2," messages html >> ",$messages;
?>
kuldeepkaundal’s picture

yes,

i get:

tabs html>>

View Edit Contact

on My Account page

and also can see error messages on pages like contact, and i've been able to use them in my theme, but, i don't want to display the warning messages, just want to show the error message, is there a way to hide warning messages?

drupalhooked’s picture

1. so first you must print $tabs variable on your page.tpl which is an HTML links for editing nodes/user profile etc
2. Warnings occur when there is some simple php errors/warnings, I advise you should find out why warnings are occuring coz these are php warnings being captured and displayed by drupal system
3. To hide php errors/warnings go to admin/settings/error-reporting and from the dropdown select "Write Errors to log" and save.
But you should choose this option when your site goes live so that site user don't see errors if there is any , While developing we must choose default option so that we remain updates with errors without going to drupal error logs.
4.Print you $message variable on the tpl file which will contain drupal system messages like form validation errors, affirmative messages etc

kuldeepkaundal’s picture

Yep, Thanks for the reply, i got it working :)