Cannot get external images working - Module externals and randimg only produces empty pages.

habakuk

Joined: 2006-03-24
Posts: 28
Posted: Fri, 2013-12-06 20:14

Hello everybody,

I have installed the modules externals (http://codex.galleryproject.org/Gallery3:Modules:externals) and randimg (http://codex.galleryproject.org/Gallery3:Modules:randimg) but if I try to open the urls I only get empty pages:
http://galerie.cvjm-nuernberg.de/randimg?size=resize or http://galerie.cvjm-nuernberg.de/externals?block_id=random_photo

Any idea why?

I have this version installed:

Version: 3.0.9 (Chartres)
PHP: 5.4.16
MySQL: 5.1.69-log
Graphics toolkit: graphicsmagick

Thanks!
Stefan

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2013-12-06 22:15

Blank pages are normally a php error. Anything in the servers error logs when you visit any of those urls?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
habakuk

Joined: 2006-03-24
Posts: 28
Posted: Fri, 2013-12-06 23:52

Hi Dave, thanks for your answer!

I checked my error logs, but there are no entries.

I already created a local.php file according to http://codex.galleryproject.org/Gallery3:FAQ#How_do_I_see_debug_information.3F but I don't see any messages.

Is there another way to get more informations?

Ciao!
Stefan Wagner

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-12-07 02:58

Ask your host

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
habakuk

Joined: 2006-03-24
Posts: 28
Posted: Sun, 2013-12-08 13:23

Hello Dave,

what should I ask him? Error logging is enabled...

Ciao!
Stefan

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-12-08 18:38

They should have access to the _servers_ error log.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
habakuk

Joined: 2006-03-24
Posts: 28
Posted: Mon, 2013-12-16 21:51

Hello Dave,
I think I get all errors in my error log, but there are no relevant informations regarding this problem in it.

I changed the file "html/modules/externals/controllers/externals.php" a little bit, to get some more information:

class externals_Core {

  static function externals_link() {
	$block_id = $_GET['block_id'];
    switch ($block_id) {
    case "random_photo":
	print "1\n";
		do {
			print "2\n";
			$item = item::random_query(array(array("type", "!=", "album")))->find_all(1)->current();
		  } while (!$item && $attempts++ < 3);
		  if ($item && $item->loaded()) {
			print "3\n";
			$externals = new View("externals.html");
			$externals->item = $item;
			$externals->exif = exif::get($item);
			print "4\n";
		  }
		print "externals: ";
		print_r($externals);
                return $externals;
    break;
    case "random_album":
    ...

If I call http://galerie.cvjm-nuernberg.de/externals?block_id=random_photo I get this output:

1
2
3
4
externals: View Object
(...

See attachment for full output.

So the script itself is running, but after that there is a problem...

Any idea how to fix it or how to debug deeper into it?

Thanks!
Stefan