Notice upon Module install from module.php on line 102

This forum is for reporting bugs in Joomla!. Please don't report problems with extensions in here.
Locked
User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

Notice upon Module install from module.php on line 102

Post by tfuller » Thu Mar 20, 2008 8:45 pm

Upon installing my module I get this error:

Notice: Only variables should be assigned by reference in ... /libraries/joomla/installer/adapters/module.php on line 102

The code around that line in module.php:

Code: Select all

// Set the installation path
		$element =& $this->manifest->getElementByPath('files');
		if (is_a($element, 'JSimpleXMLElement') && count($element->children())) {
			$files =& $element->children(); // This is line 102
			foreach ($files as $file) {
				if ($file->attributes('module')) {
					$mname = $file->attributes('module');
					break;
				}
			}
		}
		if (!empty ($mname)) {
			$this->parent->setPath('extension_root', $basePath.DS.'modules'.DS.$mname);
		} else {
			$this->parent->abort(JText::_('Module').' '.JText::_('Install').': '.JText::_('No module file specified'));
			return false;
		}
Not sure if it is my module xml file or something in the Joomla code. The lines regarding files in my xml install file:

Code: Select all

<files>
		<filename module="mod_biblestudy">mod_biblestudy.php</filename>
		<filename>helper.php</filename>
		<filename>tmpl/_study.php</filename>
		<filename>tmpl/default.php</filename>
		<filename>tmpl/bulleted.php</filename>
		<filename>tmpl/line.php</filename>
		<filename>index.html</filename>
		<filename>elements/series.php</filename>
		<filename>elements/book.php</filename>
		<filename>elements/topic.php</filename>
		<filename>elements/teacher.php</filename>
		<filename>tmpl/index.html</filename>
	</files>
The module works just fine. A PHP notice I think just indicates that better coding is preferred.

Using 1.5.1
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org

motd
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 113
Joined: Tue Sep 04, 2007 4:17 am
Contact:

Re: Notice upon Module install from module.php on line 102

Post by motd » Fri Mar 28, 2008 3:58 pm

I'm seeing this too and I'm using 1.5.2.
Display [youtube] videos on your Joomla site: http://www.flameforge.com

User avatar
bambii7
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Mon May 19, 2008 4:04 am
Location: Auckland, New Zealand
Contact:

Re: Notice upon Module install from module.php on line 102

Post by bambii7 » Wed May 21, 2008 9:05 am

I'm making my module J1.5 compatible and seeing

Module Install: No module file specified

Does anyone know the cause of this?

User avatar
bambii7
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Mon May 19, 2008 4:04 am
Location: Auckland, New Zealand
Contact:

Re: Notice upon Module install from module.php on line 102

Post by bambii7 » Wed May 21, 2008 10:31 am

Ok I had these tags in my XML file header

Code: Select all

    <name>mod_JBear_fonts</name>
    <author>Big Bear</author>
    <creationDate>May 20 2008</creationDate>
    <copyright>(c) Joomlabear ltd</copyright>
	<license>http://joomlabear.com/News/Latest/Terms-&-Conditions.html</license>
    <authorEmail>info@jjjoomlabear.com</authorEmail>
    <authorUrl>http://www.joomlabear.com/</authorUrl>
    <version>1.0.0</version>
    <description>Uses a flash file to embed a font and takes settings from backend</description>
I removed the <license> tag to leave

Code: Select all

    <name>mod_JBear_fonts</name>
    <author>Big Bear</author>
    <creationDate>May 20 2008</creationDate>
    <copyright>(c) Joomlabear ltd</copyright>
    <authorEmail>info@jjjoomlabear.com</authorEmail>
    <authorUrl>http://www.joomlabear.com/</authorUrl>
    <version>1.0.0</version>
    <description>Uses a flash file to embed a font and takes settings from backend</description>
Which fixed the error

thalueng
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Mar 31, 2009 2:06 am

Re: Notice upon Module install from module.php on line 102

Post by thalueng » Tue May 05, 2009 7:17 pm

A & anywhere in a XML file generates a module install: no module file specified error

jaimin_1985
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Fri Oct 29, 2010 6:53 pm

Re: Notice upon Module install from module.php on line 102

Post by jaimin_1985 » Thu May 05, 2011 5:56 am

Hello Guys,

Am trying to install this module in My Joomla 1.5 with legacy mode on, bit it shows following error.

"Module Install: No module file specified"

Please suggest

User avatar
johans
I've been banned!
Posts: 1293
Joined: Tue Oct 26, 2010 3:54 am
Contact:

Re: Notice upon Module install from module.php on line 102

Post by johans » Sun Dec 11, 2011 3:25 am

i encounter same error any any solutions?


Locked

Return to “Joomla! 1.5 Bug Reporting”