Upgrade to 3.0.4 --> Error 500

van_Gogh

Joined: 2005-06-21
Posts: 13
Posted: Thu, 2012-06-14 00:48

Hi,

i upgraded from 3.0.3 to 3.0.4 (simply overrided the files in /gallery3/) and after that i got an internal error 500.
I played around with the .htaccess file and the problem was solved by commenting-out the four lines:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Wired, because in 3.0.3 the lines where there already and i can't remember i had to comment-out something...

Where there any changes in 3.0.4 that could cause this error?

The server is running PHP Version 5.3.13.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25960
Posted: Thu, 2012-06-14 03:59

Weird as that commit was done 3 years ago
https://github.com/floridave/gallery3/commit/4448b0e787404565a7351c8c741edc455a092f7d

Glad you got it sorted.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
kinderale
kinderale's picture

Joined: 2012-07-31
Posts: 2
Posted: Tue, 2012-07-31 16:08

Hy,
i have a similar issue, but it doesn't seem to depend on gallery version

i tried the following configurations

gallery 3.0.2 + php 5.2.17 = it works
gallery 3.0.2 + php 5.3.13 = it doesn't work

i then upgraded to gallery 3.0.4
gallery 3.0.4 + php 5.2.17 = it works
gallery 3.0.4 + php 5.3.13 = it doesn't work

@Van_Gogh
thanks for your code
i've tried putting it in a .htaccess file into gallery3/ directory, but unfortunately it doesn't solve the issue :\

Login or register to post comments
OnyX
OnyX's picture

Joined: 2012-08-02
Posts: 2
Posted: Fri, 2012-08-03 13:46

Did you check your Kohana.php file?
Take a look here: https://github.com/gallery/gallery3/commit/6b306cddc1f25ecfe054b0a1c9d0dc3536da51f6

I still have the same issue, but for some people using php 5.4* it seems to work.

Login or register to post comments
kinderale
kinderale's picture

Joined: 2012-07-31
Posts: 2
Posted: Mon, 2012-08-13 10:37

Hy Onyx, thanks for your link
i followed the instructions, but they don't seem to apply to version 3.0.4

when i open this file:
/gallery3/system/core/Kohana.php

lines from 528 to 533 already match the code suggested in github


            // Store the Kohana output buffer.  Apparently there was a change in PHP
            // 5.4 such that if you call this you wind up with a blank page.
            // Disabling it for now.  See ticket #1839
            if (version_compare(PHP_VERSION, "5.4", "&lt;")) {
                ob_end_clean();
            }
Login or register to post comments