Home arrow Forum

Remository Forum

 


<< Start < Previous 1 2 Next > End >>
denitz

Karma: 0  
"Invalid class name for loading" error - 2012/01/06 07:57 I recieve "Invalid class name for loading" error if trying to upload file in frontend or view subcategory or search:
/downloads-index/func-addfile/9/
/downloads/downloads-index/Strategy/Age-of-Empires/
/downloads/downloads-index/search/


Joomla 1.5.23
PHP 5.3.8

Did anybody face such an error?
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:"Invalid class name for loading" error - 2012/01/06 11:56 Remository includes a class autoloader, and the names of classes to be loaded are checked.

This error occurs only when a class load is attempted with a class name that includes "http://" or ".." both of which suggest some kind of hacking attempt.

Assuming you're not engaged in hacking your site, something else must be going on that is unusual.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
denitz

Karma: 0  
Re:"Invalid class name for loading" error - 2012/01/06 13:06 This is Remository autoloader's issue:

JPlugin::_construct() uses
Code:

 if(is_a($config['params'], 'JParameter')) {



Your autoloader is called but failed and issue error message.
It is not correct behaviour, other autoloaders can't proceed next, besides as you see Joomla checks $config['params'] which is INI string and can contain any symbols (like :// or .. in this case).

Changed
Code:

 die ('Invalid class name for loading');


to
Code:

 return false;

  | | Sorry, you do not currently have permission to write here.
denitz

Karma: 0  
Re:"Invalid class name for loading" error - 2012/01/06 13:23 besides language file is not loaded in frontend, because remositoryInterface::loadLanguageFile is not loaded
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:"Invalid class name for loading" error - 2012/01/07 12:42 I don't follow your argument.

The function is_a() takes two parameters. The first is an object, and there is no reason an object will trigger a class autoloader. The second is the name of a class. "JParameter" will pass the test in the Remository autoloader.

I have never seen that error activated on test sites that have run Joomla 1.5.23. It is now upgraded to Joomla 1.5.24 but you can see that Remository is working at http://j15.myremository.com without autoloader problems.

It isn't so simple as "wrong behaviour". Remository's autoloader returns false for normal not found situations - it only dies in a situation that is highly suspicious.

I don't know what is happening on your site, but it certainly seems strange.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
denitz

Karma: 0  
Re:"Invalid class name for loading" error - 2012/01/09 06:23 Yes, but Joomla uses not object but INI string $plugin->params in is_a() and if plugin parameters has "http://" or ".." entries it fails because remository autoloader thinks that this is a hacking attempt.
  | | Sorry, you do not currently have permission to write here.
<< Start < Previous 1 2 Next > End >>

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 11 guest online