Difference between revisions of "Gallery"
From Alessandro's Wiki
Porcelinux (talk | contribs) (→Tricks) |
Porcelinux (talk | contribs) |
||
Line 1: | Line 1: | ||
== Tricks == | == Tricks == | ||
Line 32: | Line 31: | ||
$port = ( isset($url_info['port']) ) ? $url_info['port'] : 25; | $port = ( isset($url_info['port']) ) ? $url_info['port'] : 25; | ||
</pre> | </pre> | ||
== Bugs == | |||
* puzzle plugin can generate thi error en brake the "Save Album" action. | |||
Error (ERROR_BAD_PARAMETER) : Controller results are missing status, error, (redirect, delegate, return) |
Revision as of 19:28, 11 November 2010
Tricks
- How to set/use Gallery in debug mode?
edit config.php and change:
$gallery->setDebug(false);
to
$gallery->setDebug('buffered');
- sending mail through Gmail (activating ssl):
( from http://blog.bonetree.net/2008/10/configuring-gallery2-to-send-email-using-gmail/ )
change line 68 in <gallery directory>/lib/smtp/smtp.php looks like this:
list ($config['smtp.host'], $port) = array_merge(explode(':', $config['smtp.host']), array(25));
to
$url_info = parse_url($config['smtp.host']); $config['smtp.host'] = ''; if( isset($url_info['scheme']) ) { $config['smtp.host'] = $url_info['scheme'].'://'; } $config['smtp.host'] .= $url_info['host']; $port = ( isset($url_info['port']) ) ? $url_info['port'] : 25;
Bugs
- puzzle plugin can generate thi error en brake the "Save Album" action.
Error (ERROR_BAD_PARAMETER) : Controller results are missing status, error, (redirect, delegate, return)