2 Problems: Upgrader / Something went wrong

web_master

Joined: 2011-01-31
Posts: 5
Posted: Mon, 2011-01-31 15:19

Hey community,

i have actual 2 problems with 2 different gallery3-installations. I installed Gallery3 - and i want to update on 3.0.1
I went to domain.td/index.php/upgrader. The upgrader said, it's all up-to-date - version 41?
But in the statistics is still the info: Version: 3.0 (Santa Fe)

The second problem, perhaps after the "broken" update is the following. I go in the admin-page on "graphics" - i get an error:

Quote:
There's an error message below and you can find more details in gallery3/var/logs (look for the file with the most recent date on it). Stuck? Stop by the Gallery 3 Forums and ask for help. You can also look at our list of open tickets to see if the problem you're seeing has been reported. If you post a request, here's some useful information to include:
remove Systeminformationen

* Computername: XXX
* Betriebssystem: Linux 2.6.18-028stab068.3-ent
* Apache: Apache
* PHP: 5.2.6-1+lenny9
* MySQL: 5.0.51a-24+lenny4
* Serverauslastung: 0.05 0.13 0.11
* Grafik Toolkit: gd

remove Gallery Statistiken

* Version: 3.0 (Santa Fe)
* Alben: 4
* Fotos: 127

ErrorException [ Warning Message ]: shell_exec() has been disabled for security reasons

1.

MODPATH/gallery/helpers/graphics.php[ 329 ]
324 // ImageMagick 325 $path = exec("which convert"); 326 $toolkits->imagemagick->name = "ImageMagick"; 327 if ($path) { 328 if (@is_file($path)) { 329 preg_match('/Version: \S+ (\S+)/', `convert -v`, $matches); 330 $version = $matches[1]; 331 332 $toolkits->imagemagick->installed = true; 333 $toolkits->imagemagick->version = $version; 334 $toolkits->imagemagick->binary = $path;
2.

{PHP Interer Zugriff} » gallery_error_Core::error_handler()
3.

MODPATH/gallery/helpers/graphics.php[ 329 ] » shell_exec( Argumente )

0

string(10) "convert -v"

324 // ImageMagick
325 $path = exec("which convert");
326 $toolkits->imagemagick->name = "ImageMagick";
327 if ($path) {
328 if (@is_file($path)) {
329 preg_match('/Version: \S+ (\S+)/', `convert -v`, $matches);
330 $version = $matches[1];
331
332 $toolkits->imagemagick->installed = true;
333 $toolkits->imagemagick->version = $version;
334 $toolkits->imagemagick->binary = $path;

4.

MODPATH/gallery/controllers/admin_graphics.php[ 25 ] » graphics_Core::detect_toolkits()

20class Admin_Graphics_Controller extends Admin_Controller {
21 public function index() {
22 $view = new Admin_View("admin.html");
23 $view->page_title = t("Graphics settings");
24 $view->content = new View("admin_graphics.html");
25 $view->content->tk = graphics::detect_toolkits();
26 $view->content->active = module::get_var("gallery", "graphics_toolkit", "none");
27 print $view;
28 }
29
30 public function choose($toolkit_id) {

5.

{PHP Interer Zugriff} » Admin_Graphics_Controller->index()
6.

MODPATH/gallery/controllers/admin.php[ 62 ] » call_user_func_array( Argumente )

function_name

array(2) (
"0 (type: Admin_Graphics_Controller)" => array(1) (
"private: theme" => NULL
)
1 => string(5) "index"
)

parameters

array(0)

57
58 if (!method_exists($controller_name, $method)) {
59 throw new Kohana_404_Exception();
60 }
61
62 call_user_func_array(array(new $controller_name, $method), $args);
63 }
64
65 private static function _reauth_check() {
66 $session = Session::instance();
67 $last_active_auth = $session->get("active_auth_timestamp", 0);

7.

{PHP Interer Zugriff} » Admin_Controller->__call( Argumente )

controller_name

string(8) "graphics"

args

array(0)

8.

SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( Argumente )

object

array(1) (
"private: theme" => NULL
)

args

array(2) (
0 => string(8) "graphics"
1 => array(0)
)

326
327 // Start the controller execution benchmark
328 Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');
329
330 // Execute the controller method
331 $method->invokeArgs($controller, $arguments);
332
333 // Controller method has been executed
334 Event::run('system.post_controller');
335
336 // Stop the controller execution benchmark

9.

{PHP Interer Zugriff} » Kohana_Core::instance( Argumente )

0

NULL

10.

SYSPATH/core/Event.php[ 208 ] » call_user_func_array( Argumente )

function_name

array(2) (
0 => string(6) "Kohana"
1 => string(8) "instance"
)

parameters

array(1) (
0 => NULL
)

203 Event::$data =& $data;
204 $callbacks = Event::get($name);
205
206 foreach ($callbacks as $callback)
207 {
208 call_user_func_array($callback, array(&$data));
209 }
210
211 // Do this to prevent data from getting 'stuck'
212 $clear_data = '';
213 Event::$data =& $clear_data;

11.

APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( Argumente )

name

string(14) "system.execute"

62
63// End system_initialization
64Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization');
65
66// Make the magic happen!
67Event::run('system.execute');

12.

DOCROOT/index.php[ 97 ] » require( Argumente )

0

string(54) "/var/www/web16/html/gallery3/application/Bootstrap.php"

92if (file_exists("local.php")) {
93 include("local.php");
94}
95
96// Initialize.
97require APPPATH . "Bootstrap" . EXT;

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-01-31 21:13

First problem: The upgrade doesn't "auto-upgrade". In other words, it does not go out, download the files and upgrade. Follow these guides:
http://codex.gallery2.org/Gallery3:User_guide:Gallery3:Installing_and_upgrading#Upgrading

2nd problem: exec() has been disabled on your server. Without PHP being able to use exec() you can't execute any binaries, like ImageMagick, so GD is the only choice you have for graphics toolkits.
____________________________________________
Like Gallery? Like the support? Donate now!

 
web_master

Joined: 2011-01-31
Posts: 5
Posted: Mon, 2011-01-31 21:36
nivekiam wrote:
2nd problem: exec() has been disabled on your server. Without PHP being able to use exec() you can't execute any binaries, like ImageMagick, so GD is the only choice you have for graphics toolkits.

Thanks for your help!
You can see in the server-information that we already use only GD - and GD should run without exec() ?
We had no problem with GD and the exec() - since the broke update? I don't know what we changed that the error occurs.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-02-01 00:07

Issue #2:

Quote:
ErrorException [ Warning Message ]: shell_exec() has been disabled for security reasons

1.

MODPATH/gallery/helpers/graphics.php[ 329 ]
324 // ImageMagick 325 $path = exec("which convert");

The image toolkit that Gallery is using is not GD.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
web_master

Joined: 2011-01-31
Posts: 5
Posted: Tue, 2011-02-01 00:23

Here are my system-informations:

Quote:
* Computername: XXX
* Betriebssystem: Linux 2.6.18-028stab068.3-ent
* Apache: Apache
* PHP: 5.2.6-1+lenny9
* MySQL: 5.0.51a-24+lenny4
* Serverauslastung: 0.05 0.13 0.11
* Grafik Toolkit: gd

graphic toolkit: gd

Can you help me, how to change Gallery3 using the GD?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-02-01 00:38

Show us your settings under Admin > Settings > Advanced
____________________________________________
Like Gallery? Like the support? Donate now!

 
web_master

Joined: 2011-01-31
Posts: 5
Posted: Tue, 2011-02-01 09:21

Now it runs - but my hosting-partner enabled shell_exec(). This was never enabled before - and gallery3 runs anyway.

Here are the settings:

Quote:
comment access_permissions everybody
comment spam_caught 0
downloadfullsize fButton 1
favourites email

favourites email_admin 1
favourites email_template Guten Tag, %name, Das ist eine automatische E-Mail. Anbei die gewünschten Fotos %owner. Um die Fotos zu betrachten, folgen Sie bitte dem Link: %url Mit freundlichen Grüßen
favourites from_email

favourites owner ME
favourites select_from 3
favourites users_only 1
gallery active_admin_theme admin_wind
gallery active_site_theme wind
gallery admin_area_timeout 5400
gallery blocks_dashboard_center a:3:{i:0;a:2:{i:0;s:7:"gallery";i:1;s:15:"upgrade_checker";}i:1;a:2:{i:0;s:7:"gallery";i:1;s:12:"photo_stream";}i:2;a:2:{i:0;s:7:"gallery";i:1;s:11:"log_entries";}}
gallery blocks_dashboard_sidebar a:3:{i:2;a:2:{i:0;s:7:"gallery";i:1;s:11:"block_adder";}i:3;a:2:{i:0;s:7:"gallery";i:1;s:5:"stats";}i:4;a:2:{i:0;s:7:"gallery";i:1;s:13:"platform_info";}}
gallery blocks_site_sidebar a:2:{s:32:removed for public display;a:2:{i:0;s:4:"info";i:1;s:8:"metadata";}s:32:removed for public display;a:2:{i:0;s:16:"downloadfullsize";i:1;s:16:"downloadfullsize";}}
gallery credits <br></a>
gallery date_format Y-M-d
gallery date_time_format Y-M-d H:i:s
gallery default_locale de_DE
gallery email_from

gallery email_header_separator s:1:" ";
gallery email_line_length 70
gallery email_reply_to

gallery extra_binary_paths /usr/local/bin:/opt/local/bin:/opt/bin
gallery favicon_url lib/images/favicon.ico
gallery ffmpeg_path leer
gallery footer_text <a href="domain.tld"> Impressum</a>
gallery graphics_toolkit gd
gallery graphics_toolkit_path leer (german: empty)
gallery header_text leer (german: empty)
gallery identity_provider user
gallery image_quality 75
gallery image_sharpen 15
gallery installed_locales de_DE|en_US
gallery maintenance_mode 0
gallery page_size 100
gallery private_key e13efbae6639d334816d99298d0f1663a6ce43f229463d00f117555decb2a3d4
gallery resize_size 640
gallery show_credits 1
gallery show_user_profiles_to registered_users
gallery simultaneous_upload_limit 5
gallery thumb_size 145
gallery time_format H:i:s
gallery upgrade_checker_auto_enabled 1
gallery visible_title_length 15
info show_captured 1
info show_description 1
info show_name 1
info show_owner 1
info show_title 1
rest allow_guest_access 0
server_add authorized_paths a:1:{s:3:"var";i:1;}
slideshow max_scale 0
user mininum_password_length 5

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-02-02 16:19

So everything is working now?
____________________________________________
Like Gallery? Like the support? Donate now!