Hullo,

I had this working sweet, but accidently upped nodewords to the rec. release from the dev release. Ive since reverted, but I am getting this error, when trying to view a panels page, whose path has been setup in the Custom Pages tab:

Fatal error: Call to undefined function _nodewords_custom_pages_load_data() in /Users/User/Sites/local.mysite.com/sites/all/modules/contrib/nodewords_pagetitle/nodewords_pagetitle.module on line 117

Ive since uninstalled nodewords/nodewords_pagetitle/page_title modules, and tried to start fresh, but I have unfortunatley come across the same error.

Here are the steps I took:

  1. dl nodewords-6.x-1.x-dev
  2. en nodewords
  3. Visit admin/build/modules -> Meta tags
  4. Enable: ‘Admin interface for nodwords’, ‘Basic meta tags’, ‘Tokens for meta tags’, ‘User interface for nodewords’, ‘Meta tags for custom pages’.
  5. dl page_title
  6. en page_title
  7. dl nodewords_pagetitle
  8. en nodewords_pagetitle
  9. Visit admin/content/nodewords (Content Management > Meta tags).
  • Under "Meta tags to output", make sure "Page title" has "In HTML tag HEAD" checked.
  • Under "Meta tags enabled on administrative settings pages", make sure "Page title" has "Show in edit form" checked.
  • Added custom page path/* & filled page title /description fields, saved custom path pagetitle..
  • Visit that path/page/panel and receive this error:
    • Fatal error: Call to undefined function _nodewords_custom_pages_load_data() in /Users/Ron/Sites/local.theislandaccommodation.com.au/sites/all/modules/contrib/nodewords_pagetitle/nodewords_pagetitle.module on line 117
  • Any help would be much appreciated.

    Comments

    bstrange’s picture

    I am getting this exact same error since upgrading my nodewords to Nodewords 6.x-1.x-dev (2010-Nov-01). I had previously (http://drupal.org/node/911918) resolved an error with this module by upgrading to the 'then current' release of Nodewords 6.x-1.x-dev (2010-Sept'ish) * I didn't think to take note of the exact release date.

    So Nodewords nagged and nagged on the available updates page and I finally updated to the same dev build with a november release date and bam...fatal errors abound if this module is enabled.

    I am going to try going back to the Sept'ish version if I can find it, but I am worried that the pages upon pages of custom titles I have input will be lost.

    Brian294’s picture

    Brenda,
    Your custom page titles are stored in nodewords, so if you have to temporarily disable nodewords_pagetitle you won't loose your page titles. I believe that data is safe.. unless you go back into each custom page and re-save it without a custom page title.

    Peace,
    Brian

    Brian294’s picture

    Tim,
    Completely delete the nodewords module directory and re-install a previously known working version. That should resolve the issue.

    Peace,
    Brian

    dave reid’s picture

    I'll write a patch for you since this is technically an internal function and shouldn't have been used as an API function in other modules.

    Brian294’s picture

    Thank you for being so kind Dave. I was totally in the wrong for using that function.

    bstrange’s picture

    StatusFileSize
    new50.57 KB

    OK, so reverting to the previously functional version of Nodewords 6.x-1.x-dev; now verified as Nodewords 6.x-1.x-dev (2010-Aug-04) resolved the issue.

    The steps I took to revert:

    Disabled:
    Administration interface for Nodewords
    Basic meta tags
    Extra meta tags
    Meta tags for custom pages
    Nodewords
    Nodewords page title
    Site verification meta tags
    Tokens for meta tags
    User interface for Nodewords

    Then UNINSTALLED all of the nodewords entries EXCEPT "Meta tags for custom pages" (at least I believe that is how it was listed) and then deleted the nodewords folder in sites/all/modules.

    I then enabled all but 'Nodewords page title' and ran update.php (nothing updated for the record, but it's a force of habbit). I then enabled 'Nodewords page title' and am happy to say that I am no longer getting the error.

    I couldn't find Nodewords 6.x-1.x-dev (2010-Aug-04) in Nodewords download repository; however, by the grace of God, I still had it on my pc, so I am attaching it in case anyone else finds themselves having this problem.

    NOTE: It may be possible to uninstall the "Meta tags for custom pages" portion of Nodewords when you are uninstalling. The way I understand it however, uninstalling a module, or portion thereof, wipes the database table associated with it. Since I did not know if the nodewords_custom table was generated by "Meta tags for custom pages" or "Nodewords page title", I personally did not want to take that chance, so I left it disabled but not uninstalled. Had the process not worked this way, I would have uninstalled that portion of the module as well.

    Of course, I had backed up my entire DB and also nodewords_custom (seperately) in case I screwed up (not uncommon :P ) and certainly recommend you do the same.

    Also, "Nodewords page title" did not come up in the uninstall list after disabling (at least not that I remember) and I would advise against uninstalling it even if it were present in the uninstall list for fear of altering the nodewords_custom table (that I *suspect* is generated by the "Nodewords page title" module. Whatever the case, I wouldn't advise uninstalling either "Meta tags for custom pages" or "Nodewords page title" at this point.

    Perhaps Brian will weigh in and clarify the portions that I am unsure of :)

    In the meantime, feel free to try my fix. It worked for me, but depending on versions etc, your mileage may vary.

    Good luck!

    bstrange’s picture

    Wow lots of responses since I began typing my lengthy reply above hehe, talk about quality response time!

    Thanks Brian and Dave! :)

    EDIT FOR CLARITY:

    1. The attachment in #6 is Nodewords 6.x-1.x-dev (2010-Aug-04) the last stable version I had working NOT the current development version.

    2. After reading Brian's reply in #2, it appears that the nodewords_custom DB table is most likely created by the "Meta tags for custom pages" portion of Nodewords 6.x-1.x-dev and NOT "Nodewords page title", so I would definitely recommend against uninstalling that portion of Nodewords if you are reverting as I did (in the interum while Dave so kindly writes us a patch :) Thanks Dave!)

    PI_Ron’s picture

    Hi Brain & Bstrange,

    I've used bstrange's August version attached in #6, and all is working again now. Thanks for the help guys, this module is massively important, and a massive help (I can't believe this is the first way to add meta tags to Panels pages!).

    Hopefully this issue will help you guys out with the module.

    Cheers

    wapnik’s picture

    This is also not working with views. Except of the view on front page. Weird.

    My configuration:
    nodewords-6.x-1.x-dev (version from the comment #6)
    page_title-6.x-2.3
    nodewords_pagetitle 6.x-1.1
    views-6.x-2.11

    Anonymous’s picture

    The solution from comment #6 did not output description or keywords for me.

    I got it to work like this:

    latest NodeWords PageTitle 6x-dev + Nov 8th NodeWords 1x-dev module (which gives the bug this thread started with).

    Then I went into nodewords_pagetitle.module, and I changed that function call (line 117):

    $page_data = _nodewords_custom_pages_load_data($options['id']);

    to:

    $page_data = nodewords_custom_pages_load($options['id']);

    Now everything works for me.

    Brian294’s picture

    Dave, is morningtime's solution (#10) the patch you were going to propose?

    Michsk’s picture

    This reply won't help much, but i to have this issue.

    wapnik’s picture

    Sorry for spam in comment #9. The problem in my case was with a template preprocess function overriding $head_title set by page_title module. After fix it works fine.

    dave reid’s picture

    Version: 6.x-1.1 » 6.x-1.x-dev
    Status: Active » Needs review
    StatusFileSize
    new2.25 KB

    Patch to make the module work with the latest API of nodewords, which I will promise we won't break too bad anymore as long as you're using the public functions.

    Once we get Nodewords 6.x-1.12 released, there should probably be a 6.x-1.2 release of Nodewords Page Title.

    Brian294’s picture

    Thanks Dave. Will review soon.

    Brian294’s picture

    Category: support » bug
    Status: Needs review » Fixed

    Committed fix to head. Dev version will be available during next CVS refresh.

    Status: Fixed » Closed (fixed)

    Automatically closed -- issue fixed for 2 weeks with no activity.