500 error -> Create Subcategory in the front panel

Phoca Gallery - image gallery extension
dr.archik
Phoca Member
Phoca Member
Posts: 23
Joined: 14 Aug 2009, 23:05

500 error -> Create Subcategory in the front panel

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 500 error -> Create Subcategory in the front panel

Post by Jan »

Hi, seems like there is a problem with sending controller name in get, I will take a look at it.

Jan
If you find Phoca extensions useful, please support the project
dr.archik
Phoca Member
Phoca Member
Posts: 23
Joined: 14 Aug 2009, 23:05

Re: 500 error -> Create Subcategory in the front panel

Post by dr.archik »

I will wait very much!
dr.archik
Phoca Member
Phoca Member
Posts: 23
Joined: 14 Aug 2009, 23:05

Re: 500 error -> Create Subcategory in the front panel

Post by dr.archik »

Hi Jan! You have found in what problem?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 500 error -> Create Subcategory in the front panel

Post 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
If you find Phoca extensions useful, please support the project
dr.archik
Phoca Member
Phoca Member
Posts: 23
Joined: 14 Aug 2009, 23:05

Re: 500 error -> Create Subcategory in the front panel

Post by dr.archik »

I haven't absolutely understood, problem at my site or problem in gallery component ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 500 error -> Create Subcategory in the front panel

Post 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
:idea:

EDIT:

now I am testing it with .htaccess, without it, with .html suffix, without it and still no problem while creating subcategory.

Jan
If you find Phoca extensions useful, please support the project
dr.archik
Phoca Member
Phoca Member
Posts: 23
Joined: 14 Aug 2009, 23:05

Re: 500 error -> Create Subcategory in the front panel

Post by dr.archik »

jan you will try to solve this problem? There can be problem in Routing Overview of the your component ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 500 error -> Create Subcategory in the front panel

Post by Jan »

See:

Image

Subcategory was succesfully created and then redirected back with SEF url to the same panel (with standard .htaccess) :idea:

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; 
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 500 error -> Create Subcategory in the front panel

Post 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
If you find Phoca extensions useful, please support the project
Post Reply