I am updating the Drupal Core, so I uninstalled all non-core modules. After that, I get a fatal error:

Fatal error: Call to undefined function node_gallery_gallery_to_arg() in \includes\menu.inc on line 608

This error was reported several years ago, but the OP did not state how it was fixed. A commenter suggested it may be due to menu links. I have several menu items from an old gallery (Views Gallery), most of which are disabled - I assume those are irrelevent. For Node Gallery, the menu items (with relative hierarchy) are:

Browse Menu:
/galleries
+ /galleries

Navigation Menu:
/galleries
+ /node/add/node-gallery-gallery
+ /node/add/node-gallery-image
/my-galleries/1

I think the Browse Menu items are ones I created, and the Navigation Menu items are standard with Node Gallery (although I altered weights and hierarchy). Is this correct?

I have disabled the /node/add/node-gallery-gallery item, and disabled as well as deleted the second Browse Menu /galleries link (There is another item under the first /galleries link, so it's a pain to continue the trial and error unless I am on the right track). Neither of these attempts fixed the error message.

Do I continue trial and error? Any ideas of if I'm looking in the right or wrong place?

Comments

k_and_j’s picture

Status: Active » Closed (fixed)

I updated Drupal Core without uninstalling (deactivating) non-core modules. It worked (Drupal updated without a hitch...phew!). I can not replicate the original problem above of crashing the website when disabling Node Gallery.

For the record, I can not remember how I "uncrashed" the website when I did have the problem, but I think I just hit the back button in my browser and re-activated Node Gallery.