Installation, Configuration, & Upgrades  :: 
Modules broken after upgrade
 Top

  • Okay, so my earlier question (on getting a custom module based on the Reviews system) was answered.

    Larger problem: I ran the upgrade process precisely as listed in the manual.txt file, but some of the modules, while "working", are broken for admin purposes. Trying to get the control panel for Blocks (as an example) just gets me the following response:

    Code

    function view in module Blocks returned.


    The same for Avantgo, Admin, Admin Messages, Autolinks... and the list goes on.

    Is there any fix for this? I could try to extract and re-add my various database sections (news, users, etc) and import them into a brand-new clean install but that's more trouble than I'd like.

    Plus, when I try to create the new clean install, phpMyAdmin barfs on your Phoenix-0.7.6.2.sql file:

    Code

    Error

    SQL-query :  

    CREATE TABLE `pn_admin_category` (

    `pn_cid` int( 10 ) NOT null AUTO_INCREMENT ,
    `pn_name` varchar( 32 ) NOT null default '',
    `pn_description` varchar( 254 ) NOT null default '',
    PRIMARY key ( `pn_cid` )
    )ENGINE = MYISAM DEFAULTCHARSET = latin1 AUTO_INCREMENT = 6

    mysql said:


    You have an error in your SQL syntax.  Check the manual that corresponds to your mysql server version for the right syntax to use near 'ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6' at line

    That's the precise error message (along with a whole lot of "table does not exist") that I get from trying to run it directly from Mysql command line too.
  • Okay, can ANYONE help with this error? I went ahead and did the clean install (grr), started porting over tables one at a time. Had my site all set up in its test area, and everything was working fine.

    Backed up and wiped my site's directory, cleared its DB, uploaded the new-site DB and files exactly as they had been, made the one minor change needed to config.php to recognize the new database name, and... puff. "function ___ in module ___ returned" AGAIN.

    Please. This "upgrade" is getting ridiculous. I'm starting to wonder how anyone at all manages to use .762 successfully.

    Also, if anyone has any actual documentation on what the buildsimplequery() function turned into, that would ALSO be a great help, as I could get my custom modules fully upgraded and not rely on the "legacy support" option. Your documentation is sparse and since the links to pnguide in the download section are BROKEN...



    edited by: Moryath, May 25, 2006 - 04:04 PM
  • It sounds like you need to step back a bit and re-visit the upgrade procedure to ensure that you've followed the steps correctly. To me it sounds like something simple has gone wrong early on and rather than stepping back a bit your carrying down a path that's not really going anywhere....

    The upgrade process really is quite simple. Start again with your .726 database, upload the .762 files, add any additional entries to config.php (for the DB tabletype, pnTemp etc.) and then run upgrade.php to upgrade your database tables.

    The SQL dump was built on a mysql 5 system - it's likely that your running it on an earlier mysql. Buildsimplequery hasn't been replaced by anything - it just wasn't very useful at what it attempted to do. Lastly links to the pnGuide have been fixed (a dns change broke them...).

    -Mark
  • After tremendous work into it (including the creation of one more ultra-clean install, one-step-at-a-time imports of the few important things like users/groups/group_perms/group_membership, news, etc, and a very careful going-over of my customized modules and theme with a fine toothed comb, I got it working.

    Something to add to your FAQ folks: if you're installing .762 on a windows box, "function ___ in module ___ returned" is caused by file permissions; make sure your web access account has Execute permissions to every last thing in the HTML directory, or PN .762 will barf.
  • Quote

    function ___ in module ___ returned


    I seem to recall turning this option on somewhere in AutoTheme or Xanthia or something but I can't recall where I did it. Does anybody recall where to flip this option?

    --
    pnDev.com ~ featuring the PostNuke paid services forum
This list is based on the users active over the last 60 minutes.