Getting page not found site-wide after configuring Signwriter
| Project: | Signwriter |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I installed Signwriter and had it working fine. Then after changing a setting I now get Page not found throughout my site (my template is picked up, but all pages are not found). If I delete the signwriter module folder from my host I then get a huge load of errors and none of my menus show up properly. I cannot access the module page to uninstall Signwriter, so I'm completely and utterly stuck.
It happened as I was trying to get a Signwriter profile to create images for my primary navigation. Which didn't work at first, I then added this code into my page.tpl.php
$signwriter = signwriter_load_profile('Top Menu');
foreach ($primary_links as $link) {
$text = strtoupper($link['title']);
$url = theme_signwriter_text($text, $signwriter);
$link_text = '<a href="/'. $link['href'] .'">'.$url.'</a>';
print '<li>'. $link_text .'</li>';
}This got it working fine. I then went back into my Signwriter settings and removed the Signwriter profile from my primary navigation, (the reason I did this was because I did not think it was needed now I was using php to create the images).
This is when the problem occurred, immedialtey after saving the configuration.
I have removed the code above from my template, but still nothing works.

#1
#2
#3
If you have access to your database you can disable signwriter by changing its status in the system table.
Run this sql to disable signwriter:
update system set status = 0 where name = 'signwriter';Also, when dealing with menus it is a good idea to clear the cache when making any changes.
You can do this using the devel module.
Also, when using signwriter 6.x-2.x to theme menus you don't need to put any code in your templates. The module takes care of it for you.
You just create a signwriter profile, then make a signwriter menu profile from it, then assign the menu profile to whatever menus you want.
Let me know if any of this helps resolve your issue or not.
#4
Hi Justin,
Thanks for the help. I managed to fix the problem. It was actually being caused by a function I had placed in my themes template.php as from the signwriter documentation (Example: Using Signwriter for CCK fields in Views).
Once this was removed I could access some of the content on the site (although menus still didn't work) I was able to get to the modules page and uninstall signwriter.
I then re-installed it and everything works fine.
Back to the issue of primary links, I can't seem to get this working through the signwriter page in drupal.
I have a menu in Drupal called 'Top Menu', and thats assigned as the primary navigation for the site. If I create a signwriter profile, and then a menu profile and assign it to the 'Top Menu' I get no change. I can assign the same menu profile to my navigation menu and it works fine.
But it still works fine editing the tpl.php file, the only thing now I've got to do is make the image switch on hover.
Thanks a lot, great module!
#5
#6
Automatically closed -- issue fixed for 2 weeks with no activity.