Re: [development] Left menu missing
John Morahan wrote:
Joel Penner (Volt) wrote:
Hey all, I'm writing an abstraction layer for mssql and got the system up and working minus the left hand menu, it shows only 2 items if i clear the cache table but then after reloading it goes away again. Can someone point me in the right direction in the code?
Joel Penner Volt Microsoft Open Source Software Lab
Perhaps if we could see your code, we could tell you where you're going wrong?
;)
-john
Oops. I didn't actually mean to hit send on that snarky response, so I guess I should actually try to be helpful. If you're working with Drupal 5, menu_get_menu() in includes/menu.inc is the only function I'm aware of that reads or writes cached menu data. In Drupal 6 there are quite a few more. Search for calls to cache_set and cache_get with 'cache_menu' as the second parameter. If you're writing a whole new database driver, my first guess would be charset issues - I once accidentally converted a MySQL table to the wrong charset and it broke the serialized data. -john
Actually, you will see the code, when I'm done that is =p I'll check that out, thanks -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of John Morahan Sent: Tuesday, July 22, 2008 3:08 PM To: development@drupal.org Subject: Re: [development] Left menu missing John Morahan wrote:
Joel Penner (Volt) wrote:
Hey all, I'm writing an abstraction layer for mssql and got the system up and working minus the left hand menu, it shows only 2 items if i clear the cache table but then after reloading it goes away again. Can someone point me in the right direction in the code?
Joel Penner Volt Microsoft Open Source Software Lab
Perhaps if we could see your code, we could tell you where you're going wrong?
;)
-john
Oops. I didn't actually mean to hit send on that snarky response, so I guess I should actually try to be helpful. If you're working with Drupal 5, menu_get_menu() in includes/menu.inc is the only function I'm aware of that reads or writes cached menu data. In Drupal 6 there are quite a few more. Search for calls to cache_set and cache_get with 'cache_menu' as the second parameter. If you're writing a whole new database driver, my first guess would be charset issues - I once accidentally converted a MySQL table to the wrong charset and it broke the serialized data. -john
participants (2)
-
Joel Penner (Volt) -
John Morahan