Author Topic: [SOLVED] Fatal error  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

Offline Radkosky

[SOLVED] Fatal error
« on: 08. August 2010, 23:14:46 »
[SOLVED - See solution]
hello
I have simple error:
Warning: Invalid argument supplied for foreach() in /joomla/libraries/joomla/html/html/select.php on line 68 (5 times in field "modules parameter" in my sobi2simplefeatured CLONE).
After home page refresh:
Warning: require(/joomla/components/com_clone2/config.class.php) [function.require]: failed to open stream: No such file or directory in /joomla/modules/mod_clone2simplefeatured/mod_clone2simplefeatured.php on line 33
Fatal error: Class 'clone2Config' not found in /autoinstalator/joomla/modules/mod_clone2simplefeatured/helper.php on line 46

So, mod_sobi2simplefeatured works ok, this problem is with clone named "mod_clone2simplefeatured", of course I installed both.
thanx for help!
« Last Edit: 11. August 2010, 17:28:15 by aboututila »
Country: Poland Poland |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Opera 9.80 Opera 9.80 | View Profile


Offline aboututila

Re: Fatal error:
« Reply #1 on: 09. August 2010, 18:06:26 »
Radkosky,
Warning: Invalid argument supplied for foreach() in /joomla/libraries/joomla/html/html/select.php on line 68 (5 times in field "modules parameter" in my sobi2simplefeatured CLONE).
I am not sure what is causing this error.
It is possible you have not cloned mod_sobi2simplefeatured correctly.
You did make a clone of mod_sobi2simplefeatured.xml and en-GB.mod_sobi2simplefeatured.ini
changing the file names as well as the contents. Correct?

Warning: require(/joomla/components/com_clone2/config.class.php) [function.require]: failed to open stream: No such file or directory in /joomla/modules/mod_clone2simplefeatured/mod_clone2simplefeatured.php on line 33
Before cloning module mod_sobi2simplefeatured
Line 33 in MyJoomlaInstallation/modules/mod_clone2simplefeatured/mod_clone2simplefeatured.php
was
class_exists( 'sobi2Config' ) || require(JPATH_BASE.DS.'components'.DS.'com_sobi2'.DS.'config.class.php');
after cloning this line should read
class_exists( 'clone2Config' ) || require(JPATH_BASE.DS.'components'.DS.'com_clone2'.DS.'config.class.php');
The module needs to load the file MyJoomlaInstallation/components/com_clone2/config.class.php
where MyJoomlaInstallation is the path to the root of your Joomla installation.

You could try changing this to;
class_exists( 'clone2Config' ) || require(JPATH_ROOT.DS.'components'.DS.'com_clone2'.DS.'config.class.php');
Refer http://docs.joomla.org/Constants

Fatal error: Class 'clone2Config' not found in /autoinstalator/joomla/modules/mod_clone2simplefeatured/helper.php on line 46
This error is a result of the previous error.
Before cloning module mod_sobi2simplefeatured
Line 46 in MyJoomlaInstallation/modules/mod_clone2simplefeatured/helper.php
was
$this->sobi2_config=sobi2Config::getInstance();
after cloning this line should read
$this->clone2_config=clone2Config::getInstance();

The only other thing I notice is that the paths do not appear to be consistent.
ie:
/joomla
and
/autoinstalator/joomla

I assume your Joomla Installation (MyJoomlaInstallation) is in a sub-directory named 'joomla' in the folder named 'autoinstalator'

Regards - Mark
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.8 Firefox 3.6.8 | View Profile

Offline Radkosky

Re: Fatal error:
« Reply #2 on: 09. August 2010, 23:03:36 »
Hi Mark,
Quote
It is possible you have not cloned mod_sobi2simplefeatured correctly.
You did make a clone of mod_sobi2simplefeatured.xml and en-GB.mod_sobi2simplefeatured.ini
changing the file names as well as the contents. Correct?

I think I made it correct: using "search & replace" in this all *.php *.xml files, and finally renamed files including language file. And after uninstall all using automatic renaming tool: http://sourceforge.net/projects/asobi2clonewin/files/ (maybe useful for lazy part of community  :) )

Quote
The module needs to load the file MyJoomlaInstallation/components/com_clone2/config.class.php
where MyJoomlaInstallation is the path to the root of your Joomla installation.

Maybe here is problem- I only have directory MyJoomlaInstalation/components/com_sobi2/ without directory: MyJoomlaInstalation/components/com_clone2/ I don't know why

Quote
You could try changing this to;
class_exists( 'clone2Config' ) || require(JPATH_ROOT.DS.'components'.DS.'com_clone2'.DS.'config.class.php');
Refer http://docs.joomla.org/Constants

it doesn't help

Quote
The only other thing I notice is that the paths do not appear to be consistent.
ie:
/joomla
and
/autoinstalator/joomla

sorry, this was my fault during cutting url's, only the last one is my full path

thanks for fast response, and sorry for my english  :(

Regards,
Radek
Country: Poland Poland |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Opera 9.80 Opera 9.80 | View Profile

Offline aboututila

Re: Fatal error:
« Reply #3 on: 10. August 2010, 18:21:42 »
Maybe here is problem- I only have directory MyJoomlaInstalation/components/com_sobi2/ without directory: MyJoomlaInstalation/components/com_clone2/ I don't know why
Yes, this is your problem.

You did make a clone of SOBI2, correct?
And that clone was named clone2, correct?
You only need to make a clone of mod_sobi2simplefeatured is you want it to work with your clone of SOBI2.
I assumed that you had made a clone of SOBI2.

If you did not make a clone of SOBI2, then you do not need to make a clone of mod_sobi2simplefeatured.
If you want more than one instance of mod_sobi2simplefeatured, then just make a copy of the module using
Joomla! Administrator->Extensions->Module Manager

Regards - Mark
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.8 Firefox 3.6.8 | View Profile

Offline Radkosky

Re: Fatal error:
« Reply #4 on: 11. August 2010, 12:57:44 »
Quote
If you did not make a clone of SOBI2, then you do not need to make a clone of mod_sobi2simplefeatured.
If you want more than one instance of mod_sobi2simplefeatured, then just make a copy of the module using
Joomla! Administrator->Extensions->Module Manager
That's it, It works. I need more instances of mod_sobi2simplefeatured. I'm newbie user and I saw in your documentation how to clone, I did't know this differences. Thank you!
Country: Poland Poland |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Opera 9.80 Opera 9.80 | View Profile

Offline aboututila

Re: Fatal error:
« Reply #5 on: 11. August 2010, 17:23:23 »
I am glad you solved the problem.

For the benefit of others;
Radkosky had this problem because he/she had made a clone of mod_sobi2simplefeatured, but had not made a clone of SOBI2.

(1) You only need to make a clone of mod_sobi2simplefeatured if you want to make it work with a clone of SOBI2.
(2) If you want to have multiple instances of mod_sobi2simplefeatured, then make copies of the module using Joomla! Administrator->Extensions->Module Manager

Regards - Mark
« Last Edit: 11. August 2010, 17:26:23 by aboututila »
Country: Honduras Honduras |  OS: Windows XP Windows XP |  Browser: Firefox 3.6.8 Firefox 3.6.8 | View Profile

Tags: