3.3 Update and Modu...
 
Notifications
Clear all

3.3 Update and Modules

4 Posts
2 Users
0 Reactions
2,335 Views
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

If for some reason, a module didn't get recorded in the modules table during the update and is therefore showing "Install Module" in the Modules panel, you can follow these steps to add it:

The module information didn't get added to the database for some reason.  Cheater method to add it:

1.  Go to Admin->Custom Pages. And click on "Add New Custom Page".  If you have tinyMCE enabled on your site, click the checkbox to the off position to turn it off in the form.
2.  Doesn't matter what you put in name and title, just enter something.  Then in the text of the page put this:


<?php
$result = dbquery("INSERT INTO ".TABLEPREFIX."fanfiction_modules(`name`, `version`) VALUES('Recommendations', '1.1')");
if($result) $output .= write_message(_ACTIONSUCCESSFUL);
else $output .= write_message(_ERROR);
?>

3.  Click Preview. You don't need to save it.  Just run it once.  In the preview section, you should see the action successful message if it worked and an error message if it didn't.

Replace the information in the VALUES section with each module's information.  You'll most likely want to use 1.0 for the version.


 
Posted : 18/06/2007 1:12 pm
(@crysta)
Posts: 16
Active Member
 

This seems like a really stupid question, but I can't find a Modules Panel in my install.  I just upgraded from 3.0.2 to 3.3.1.  I ran the code I found in another thread to create the modules table (successfully), and then ran this code (successfully), but I have no idea how to get to this Modules Panel you're talking about.  As far as I can tell, it just doesn't exist, and I couldn't find a thread regarding a missing panel.

URL to your eFiction: http://starwarschicks.com/archive
Version of eFiction:3.3.1 upgraded from 3.0.2
Have you bridged eFiction, if so with what?: No
Version of PHP: 4.4.7 
Version of MySQL: 5.0.45
Have you searched for your problem: Yes
If so, what terms did you try:  Modules, Modules panel
State the nature of your problem:   Modules panel is missing
Do you have a test account for us?  No


 
Posted : 12/10/2007 2:06 pm
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

Follow the instructions above but replace the query with this one.


dbquery("INSERT INTO `".TABLEPREFIX."fanfiction_panels` (`panel_name`, `panel_title`, `panel_url`, `panel_level`, `panel_order`, `panel_hidden`, `panel_type`) VALUES ('modules', 'Modules', '', 1, ".$panelCount.", 0, 'A')");

 
Posted : 14/10/2007 12:16 am
(@crysta)
Posts: 16
Active Member
 

Thanks Tammy!

For some reason, the code you gave me above wasn't working, but I went into phpMyAdmin and added the new entry manually, which worked.  I'm not sure what the issue was with the above code, but mySQL spit out the following result for me, which might help the next person:

INSERT INTO `eFiction_fanfiction_panels` (`panel_id`, `panel_name`, `panel_title`, `panel_url`, `panel_level`, `panel_order`, `panel_hidden`, `panel_type`) VALUES (NULL, 'modules', 'Modules', NULL, '1', '.$panelCount.', '0', 'A');

 
Posted : 14/10/2007 6:02 pm
Share: