Page 1 of 2
500 error -> Create Subcategory in the front panel
Posted: 18 Jun 2010, 11:12
by dr.archik
The 500 error appears when is:
Joomla 1.5.18 (global conf)
Search Engine Friendly URLs - yes
Use Apache mod_rewrite - yes
Add suffix to URLs - yes
(When options are switched "NO" error doesn't arise)
htaccess is rename to .htaccess
error_reporting = E_ALL & ~E_NOTICE
php_flag display_errors on
php_value error_reporting 6143
The error appears when user crate new Subcategory (on the front) by contral panel.
http://www.photoshare.ru/photo5471931.html
Re: 500 error -> Create Subcategory in the front panel
Posted: 18 Jun 2010, 11:52
by Jan
Hi, seems like there is a problem with sending controller name in get, I will take a look at it.
Jan
Re: 500 error -> Create Subcategory in the front panel
Posted: 19 Jun 2010, 08:50
by dr.archik
I will wait very much!
Re: 500 error -> Create Subcategory in the front panel
Posted: 29 Jun 2010, 03:37
by dr.archik
Hi Jan! You have found in what problem?
Re: 500 error -> Create Subcategory in the front panel
Posted: 30 Jun 2010, 11:51
by Jan
Hi, I have tested it and there is problem with the SEF (in fact I didn't find any other way to send the controller name, so if this is cutted by SEF there needs to be done some hack and seems it will be not easy because of conflicting with other parts of the system

)
Jan
Re: 500 error -> Create Subcategory in the front panel
Posted: 30 Jun 2010, 13:34
by dr.archik
I haven't absolutely understood, problem at my site or problem in gallery component ?
Re: 500 error -> Create Subcategory in the front panel
Posted: 30 Jun 2010, 13:51
by Jan
Seems like the problem on my site was caused by wrong .htaccess
I have tested the .htaccess and left some wrong settings, now I have uploaded the Joomla! core .htacces and everything is working for me
EDIT:
now I am testing it with .htaccess, without it, with .html suffix, without it and still no problem while creating subcategory.
Jan
Re: 500 error -> Create Subcategory in the front panel
Posted: 30 Jun 2010, 14:33
by dr.archik
jan you will try to solve this problem? There can be problem in
Routing Overview of the your component ?
Re: 500 error -> Create Subcategory in the front panel
Posted: 30 Jun 2010, 14:35
by Jan
See:
Subcategory was succesfully created and then redirected back with SEF url to the same panel (with standard .htaccess)
The routing should be OK, and in the address there is no ID
Code: Select all
case 'user' :
if($count == 1) {
$vars['view'] = 'user';
}
if($count == 2) {
$vars['view'] = 'user';
$vars['id'] = $segments[$count-1];
}
if($count == 3) {
$vars['catid'] = $segments[$count-3];
$vars['view'] = $segments[$count-2];
$vars['id'] = $segments[$count-1];
}
break;
Re: 500 error -> Create Subcategory in the front panel
Posted: 30 Jun 2010, 14:41
by Jan
Try to enable debug mode, if there is no database error.
but seems that this is not that case as the error is comming from controller:
libraries/joomla/application/component/controller.php - 470 line
This:
if ( $view = & $this->_createView( $name, $prefix, $type, $config ) ) {
seems like it returns false, so maybe you should check all the variables which are comming to this method and compare if they are not empty e.g. - did you try to only disable .htaccess option and run SEF without .htaccess
Jan