Hi there!
First, nice job with gallery3! Even better for the clear and simple documentation provided.
Unfortunatly, I am experiencing some issues by importing all G2 data to G3.
Basically, I have followed the procedure from the documentation.
- I setup successfully G3
- enabled G2 import module
- enter path of G2 but get a blanck screen after submit
I have nothing going on, no logs, nothing...
So I reload the page and this time I get "Dang... Something went wrong!"
Could you please someonce help me, any advise is appreciated.
Thank you!
Operating system: Linux 2.6.32-71.29.1.el6.x86_64
Apache: Apache/2.2.15 (CentOS)
PHP: 5.3.2
MySQL: 5.1.52
Server load: 0 0 0
Graphics toolkit: gd
Gallery stats
Version: 3.0.2 (Coollanta)
Albums: 0
Photos: 0
Posts: 7
Here are more details about the issue encountered:
Kohana_Exception [ kohana/core.errors.403 ]: @todo FORBIDDEN
MODPATH/gallery/helpers/access.php[ 202 ]
197 198 /** 199 * Terminate immediately with an HTTP 403 Forbidden response. 200 */ 201 static function forbidden() { 202 throw new Kohana_Exception("@todo FORBIDDEN", null, 403); 203 } 204 205 /** 206 * Internal method to set a permission 207 *
MODPATH/gallery/helpers/access.php[ 425 ] » access_Core::forbidden()
420 * Verify our Cross Site Request Forgery token is valid, else throw an exception.
421 */
422 static function verify_csrf() {
423 $input = Input::instance();
424 if ($input->post("csrf", $input->get("csrf", null)) !== Session::instance()->get("csrf")) {
425 access::forbidden();
426 }
427 }
428
429 /**
430 * Get the Cross Site Request Forgery token for this session.
MODPATH/g2_import/controllers/admin_g2_import.php[ 76 ] » access_Core::verify_csrf()
71 g2_import::restore_error_reporting();
72 print $view;
73 }
74
75 public function save() {
76 access::verify_csrf();
77 g2_import::lower_error_reporting();
78
79 $form = $this->_get_import_form();
80 if ($form->validate()) {
81 $embed_path = $form->configure_g2_import->embed_path->value;
{PHP internal call} » Admin_g2_import_Controller->save()
MODPATH/gallery/controllers/admin.php[ 62 ] » call_user_func_array( arguments )
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);
{PHP internal call} » Admin_Controller->__call( arguments )
SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( arguments )
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
{PHP internal call} » Kohana_Core::instance( arguments )
SYSPATH/core/Event.php[ 208 ] » call_user_func_array( arguments )
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;
APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( arguments )
62
63// End system_initialization
64Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization');
65
66// Make the magic happen!
67Event::run('system.execute');
DOCROOT/index.php[ 102 ] » require( arguments )
97if (file_exists("local.php")) {
98 include("local.php");
99}
100
101// Initialize.
102require APPPATH . "Bootstrap" . EXT;
Posts: 7
And the reload of the blanck page who results by giving me "Dang... Something went wrong!" page with details above, finally gave me some logs:
2011-11-25 05:48:13 -05:00 --- error: Kohana_Exception [ 403 ]: @todo FORBIDDEN
/home/www/mywebsite/en/private/gallery3/modules/gallery/helpers/access.php [ 202 ]
#0 /home/www/mywebsite/en/private/gallery3/modules/gallery/helpers/access.php(425): access_Core::forbidden()
#1 /home/www/mywebsite/en/private/gallery3/modules/g2_import/controllers/admin_g2_import.php(76): access_Core::verify_csrf()
#2 [internal function]: Admin_g2_import_Controller->save()
#3 /home/www/mywebsite/en/private/gallery3/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#4 [internal function]: Admin_Controller->__call('g2_import', Array)
#5 /home/www/mywebsite/en/private/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#6 [internal function]: Kohana_Core::instance(NULL)
#7 /home/www/mywebsite/en/private/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#8 /home/www/mywebsite/en/private/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#9 /home/www/mywebsite/en/private/gallery3/index.php(102): require('/home/www/www.t...')
#10 {main}
2011-11-25 05:48:13 -05:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
Posts: 27
I know this is too simple and probably not it but did you correctly define the ABSOLUTE path to embed.php? Don't use a path with links in it.
Posts: 7
Thank you Angerosa for your reply.
Basically I go to the module "Gallery 2 import" and follow steps:
Step1: Filesystem path to your Gallery 2 embed.php file -> I set /home/www/monsite/en/private/gallery2 (the auto complete in the form find it)
I hit continue and get the blanck page...
From that point I have no error, no logs.
I need to reload the blank page to get the error page and logs and error info...
The blanck screen is quite inconvenient and I am not sure how I could be able to use the g3 without starting from scratch (importing manually old stuff from g2). If someone have an idea... Thank you!
Posts: 7
Guys,
Pls let me know if you need other details?
I am stuck and I am not sure if it is a bug or a mistake from me.
Thank you!
Posts: 27
I just went through this and it worked for me when I put the whole path including embed.php...
This is how I have it specified..
/home4/jasonan8/www/upgrade/embed.php
In step two does it say "Gallery version 2.x.x detected" ?
Posts: 7
In step1, I set the path with embed.php without any links:
/home/www/mysite/en/private/gallery2/embed.php
The autocomplete for this field find the embed.php file correctly.
When I submit, this is when it crash, I get a blanck page so I do not know about step2 results...
More info, here is my G2 info:
Gallery version = 2.0 core 1.0.0
PHP version = 5.3.2 apache2handler
Webserver = Apache/2.2.15
Database = mysql 5.1.52
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd, Thumbnail
Operating system = Linux 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64
Browser = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
I wonder if I should redo it from scratch.
Posts: 8
Hello folks,
I just installed Gallery3 on July 16th, 2012 (almost a year after this post), and I'm having the exact same error... it finds my embed.php file, but then crashes and throws the forbidden error.
Any progress on this issue?
Posts: 7
No good feedbacks on my side, I ended up by importing the data manually using the folder import directly on the server.
Great functionnality but you need to rename albums if folder names was not good and it is another story for photo descriptions...
Anyway, sorry I have not found a solution for the error bellow I had and we have in common.
2011-11-25 05:48:13 -05:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
Good luck! :/