1
xltran
Modules Administration -- Module File for Not Found!
  • 2007/7/2 9:58

  • xltran

  • Just popping in

  • Posts: 23

  • Since: 2002/7/28


I renamed mastop_publish module to publish and attempted to install twice but unsuccessful. Now in the "Modules Administration" screen/menu, it shows two module rows:

Module File for Not Found!

Module File for Not Found!


I have tried all the normal methods through the module administration screen/menu in uninstalling them but no luck in get ridding the two rows above because they do not exist.

Does anyone know how I could manually delete the two rows above from the Modules Administration screen/menu?

2
wtravel
Re: Modules Administration -- Module File for Not Found!

To rename this module's directory you have to rename it in the modinfo.php language files (all languages) as well.

I am not sure if these files are the only files that need to be edited...

HTH

Quote:

xltran wrote:
I renamed mastop_publish module to publish and attempted to install twice but unsuccessful. Now in the "Modules Administration" screen/menu, it shows two module rows:

Module File for Not Found!

Module File for Not Found!


I have tried all the normal methods through the module administration screen/menu in uninstalling them but no luck in get ridding the two rows above because they do not exist.

Does anyone know how I could manually delete the two rows above from the Modules Administration screen/menu?

3
underdog
Re: Modules Administration -- Module File for Not Found!
  • 2007/7/2 11:43

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


Quote:

I am not sure if these files are the only files that need to be edited...


I think you should also take a look at xoops_version.php
Thought the module administration page was looking at that one for all the info.

4
areteam
Re: Modules Administration -- Module File for Not Found!
  • 2007/7/2 12:03

  • areteam

  • Just popping in

  • Posts: 16

  • Since: 2007/1/23


Resized Image


its same prob in my XOOPS site

5
wtravel
Re: Modules Administration -- Module File for Not Found!

As far as I know from the first mastop_publish release the module directory is defined in the modinfo.php language files. They directory is defined as a constant.

This means that you cannot have two instances of this module just by copying the module, because the constant used for this has already been defined when the module administration function checks the xoops_version.php files.

For example in xoops_version.php the module directory name is retrieved from the modinfo.php language files which contains something like:

define('MASTOP_DIRNAME', 'publish');

You also have a copy of the module with another defined module directory name:
define('MASTOP_DIRNAME', 'mastop_publish');

When php processes both files for its module administration page it will end up in a notice that constant XXX has already been defined.

I hope this description of the problem is clear. If not, please let me know.

6
xltran
Re: Modules Administration -- Module File for Not Found!
  • 2007/7/3 2:17

  • xltran

  • Just popping in

  • Posts: 23

  • Since: 2002/7/28


My situation is I am using XOOPS 2.0.16 and mastop_publish version 1.1. Initially, I installed with the original module name and it worked fine. Next, I uninstalled mastop_publish module. It uninstalled fine. After, I renamed mastop_publish module name to publish. Then, I attempted to install the module with renamed folder publish. The first install failed. I tried installed again also failed. Now I see two rows in module administration screen/menu.

Module File for Not Found!

Module File for Not Found!


I renamed the module back to mastop_publish and installed fine and also uninstalled fine. But the above rows still showed in the module administration screen/menu. I tried to search for variable publish in all the files under the module directory but no luck. I looked in all the files as suggested xoops_version.php and modinfo.php and found no entry such as publish.

Please if possible, provide detail information of directory, file name and variable to manually remove/change to remove the two "Module File for Not Found!" rows in the module administration screen/menu. Thank you for all your help.

7
wtravel
Re: Modules Administration -- Module File for Not Found!

Can you check your database (eg with phpmyadmin) and look in the table yourprefix_modules. You will probably find two rows for the failed installations.

I think if you manually delete these rows the errors should not occur anymore.

8
xltran
Re: Modules Administration -- Module File for Not Found!
  • 2007/7/4 1:44

  • xltran

  • Just popping in

  • Posts: 23

  • Since: 2002/7/28


Thanks!!

Yep...in table name modules, I found two row with no name, etc... I deleted them using command-line. The problem solved.

Login

Who's Online

212 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits