I finally imported everything onto the new host and completed the setup. I did not copy over the cache though. Now when I try to build thumbnails and resizes, nothing happens and the progress bar does not move.. At the top right it says: Memory used: 5639456, total: 12M.
I did get a message in the installation about a memory limit of 12MB and that I should change .htaccess to show 16MB. I didn't do that because it kept the gallery directory from being accessible.
If anyone can help, that would be great.
Thanks,
Makar
Posts: 32509
disable and uninstall the netpbm, imagemagick and gd modules.
then try to install and activate the netpbm and imagemagick module.
@memory:
obviously your htaccess change doesn't help. don't use the gd module since it needs a lot of memory.
you should contact your webhost about increasing the memory limit.
Posts: 145
What should I have them change it to?
Posts: 32509
at least 16M, better 24M.
Posts: 145
Once I reinstalled ImageMagick, it started to rebuild after a long time. It got up to 155 items built then the following popped up:
Smarty Debug Console
included templates & config files (load time in seconds):
no templates included
assigned template variables:
{$ImageFrameData} Array (2)
idList => empty
data => Array (0)
{$SCRIPT_NAME} /photos/main.php
{$form} Array (2)
action => Array (1)
runTask => 1
formName => empty
{$head} Array (3)
tpl => Array (1)
modules/imageframe/templates/ImageFrameHead.tpl => modules_imageframe
style => Array (2)
0 => modules/rating/rating.css
1 => modules/icons/iconpacks/paularmstrong...
javascript => Array (3)
0 => modules/search/SearchBlock.js
1 => lib/javascript/XmlHttp.js
2 => modules/rating/rating.js
{$isEmbedded}
{$l10Domain} themes_matrix
{$status} Array (0)
{$theme} Array (12)
themeUrl => themes/matrix
guestPreviewMode => 0
actingUserId => 6
markupType => bbcode
params => Array (15)
_version => 1.1.0
_requiredCoreApi => 7,0
_requiredThemeApi => 2,1
rows => 5
columns => 4
showImageOwner => 0
showAlbumOwner => 0
showMicroThumbs => 1
sidebarBlocks => Array (6)
0 => Array (2)
0 => search.SearchBlock
1 => Array (0)
1 => Array (2)
0 => rating.Rating
1 => Array (0)
2 => Array (2)
0 => core.ItemLinks
1 => Array (1)
useDropdown =>
3 => Array (2)
0 => cart.ShowCart
1 => Array (0)
4 => Array (2)
0 => members.MembersSummary
1 => Array (0)
5 => Array (2)
0 => imageblock.ImageBlock
1 => Array (0)
albumBlocks => Array (1)
0 => Array (2)
0 => comment.ViewComments
1 => Array (1)
show => 10
photoBlocks => Array (1)
0 => Array (2)
0 => comment.ViewComments
1 => Array (1)
show => 10
itemFrame => none
albumFrame => shadow
photoFrame => none
colorpack => empty
useFullScreen =>
pageType => progressbar
item => Array (23)
theme => empty
orderBy => empty
orderDirection => asc
canContainChildren => 1
description => 10/11 - Added Shaher & Modonna's ...
keywords => empty
ownerId => 6
summary => Welcome to Makar's Gallery
title => Makar's Gallery
viewedSinceTimestamp => 1130045038
originationTimestamp => 1130045038
pathComponent => empty
id => 7
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
linkedEntity => empty
modificationTimestamp => 1160617767
serialNumber => 179
entityType => GalleryAlbumItem
onLoadHandlers => empty
_persistentStatus => Array (2)
flags => 0
originalValue => Array (21)
theme => empty
orderBy => empty
orderDirection => asc
canContainChildren => 1
description => 10/11 - Added Shaher & Modonna's ...
keywords => empty
ownerId => 6
summary => Welcome to Makar's Gallery
title => Makar's Gallery
viewedSinceTimestamp => 1130045038
originationTimestamp => 1130045038
pathComponent => empty
parentId => 0
id => 7
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
modificationTimestamp => 1160617767
serialNumber => 179
entityType => GalleryAlbumItem
onLoadHandlers => empty
parentId => 0
children => Array (0)
parents => Array (0)
parent => empty
systemLinks => Array (3)
core.SiteAdmin => Array (2)
text => Site Admin
params => Array (2)
view => core.SiteAdmin
return => 1
core.YourAccount => Array (2)
text => Your Account
params => Array (3)
view => core.UserAdmin
subView => core.UserPreferences
return => 1
core.Logout => Array (2)
text => Logout
params => Array (2)
controller => core.Logout
return => 1
{$user} Array (18)
userName => Makar
fullName => Makar
hashedPassword => [I removed this line]
email =>
language => empty
id => 6
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
linkedEntity => empty
modificationTimestamp => 1130045038
serialNumber => 1
entityType => GalleryUser
onLoadHandlers => empty
_persistentStatus => Array (2)
flags => 0
originalValue => Array (13)
userName => Makar
fullName => Makar
hashedPassword => [I removed this line]
email =>
language => empty
id => 6
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
modificationTimestamp => 1130045038
serialNumber => 1
entityType => GalleryUser
onLoadHandlers => empty
isGuest =>
isRegisteredUser => 1
isAdmin => 1
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)
Also, here are the last run details:
Error (ERROR_LOCK_TIMEOUT) : /hermes/web09/b2104/pow.makyar/g2data/locks/2/9/296
in modules/core/classes/FlockLockSystem.class at line 114 (gallerycoreapi::error)
in modules/core/classes/GalleryLockSystem.class at line 153 (flocklocksystem::_acquirelock)
in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 185 (flocklocksystem::acquirewritelock)
in modules/core/classes/GalleryCoreApi.class at line 2308 (gallerylockhelper_simple::acquirewritelock)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 731 (gallerycoreapi::acquirewritelock)
in modules/core/classes/GalleryCoreApi.class at line 956 (galleryderivativehelper_advanced::rebuildcache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 66 (gallerycoreapi::rebuildderivativecache)
in modules/core/classes/GalleryCoreApi.class at line 942 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
in modules/core/classes/BuildDerivativesTask.class at line 94 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
in modules/core/AdminMaintenance.inc at line 100 (buildderivativestask::run)
in ??? at line 0 (adminmaintenancecontroller::runtask)
in modules/core/classes/GalleryTemplateAdapter.class at line 800
in /hermes/web09/b2104/pow.makyar/g2data/smarty/templates_c/%%4011727635/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (gallerytemplateadapter::trailer)
in lib/smarty/Smarty.class.php at line 1251
in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 228 (gallerysmarty::fetch)
in main.php at line 412 (gallerytemplate::display)
in main.php at line 87
in main.php at line 80
What does this mean?
Posts: 145
If anyone can help, it would be appreciated.
Posts: 145
The host changed the memory limit to 24MB. Still having the same problem though.
Posts: 32509
- in case you use flock / file based locking, you should switch to database based locking (site admin -> scroll down).
- if the problem persists, please see:
http://gallery.menalto.com/node/29633#comment-106061
Posts: 145
I emptied the lock table and changed the locking system. This is what I get when trying to build thumbnails (I think it's the same thing):
Smarty Debug Console
included templates & config files (load time in seconds):
no templates included
assigned template variables:
{$ImageFrameData} Array (2)
idList => empty
data => Array (0)
{$SCRIPT_NAME} /photos/main.php
{$form} Array (2)
action => Array (1)
runTask => 1
formName => empty
{$head} Array (3)
tpl => Array (1)
modules/imageframe/templates/ImageFrameHead.tpl => modules_imageframe
style => Array (2)
0 => modules/rating/rating.css
1 => modules/icons/iconpacks/paularmstrong...
javascript => Array (3)
0 => modules/search/SearchBlock.js
1 => lib/javascript/XmlHttp.js
2 => modules/rating/rating.js
{$isEmbedded}
{$l10Domain} themes_matrix
{$status} Array (0)
{$theme} Array (12)
themeUrl => themes/matrix
guestPreviewMode => 0
actingUserId => 6
markupType => bbcode
params => Array (15)
_version => 1.1.0
_requiredCoreApi => 7,0
_requiredThemeApi => 2,1
rows => 5
columns => 4
showImageOwner => 0
showAlbumOwner => 0
showMicroThumbs => 1
sidebarBlocks => Array (6)
0 => Array (2)
0 => search.SearchBlock
1 => Array (0)
1 => Array (2)
0 => rating.Rating
1 => Array (0)
2 => Array (2)
0 => core.ItemLinks
1 => Array (1)
useDropdown =>
3 => Array (2)
0 => cart.ShowCart
1 => Array (0)
4 => Array (2)
0 => members.MembersSummary
1 => Array (0)
5 => Array (2)
0 => imageblock.ImageBlock
1 => Array (0)
albumBlocks => Array (1)
0 => Array (2)
0 => comment.ViewComments
1 => Array (1)
show => 10
photoBlocks => Array (1)
0 => Array (2)
0 => comment.ViewComments
1 => Array (1)
show => 10
itemFrame => none
albumFrame => shadow
photoFrame => none
colorpack => empty
useFullScreen =>
pageType => progressbar
item => Array (23)
theme => empty
orderBy => empty
orderDirection => asc
canContainChildren => 1
description => 10/11 - Added Shaher & Modonna's ...
keywords => empty
ownerId => 6
summary => Welcome to Makar's Gallery
title => Makar's Gallery
viewedSinceTimestamp => 1130045038
originationTimestamp => 1130045038
pathComponent => empty
id => 7
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
linkedEntity => empty
modificationTimestamp => 1160617767
serialNumber => 179
entityType => GalleryAlbumItem
onLoadHandlers => empty
_persistentStatus => Array (2)
flags => 0
originalValue => Array (21)
theme => empty
orderBy => empty
orderDirection => asc
canContainChildren => 1
description => 10/11 - Added Shaher & Modonna's ...
keywords => empty
ownerId => 6
summary => Welcome to Makar's Gallery
title => Makar's Gallery
viewedSinceTimestamp => 1130045038
originationTimestamp => 1130045038
pathComponent => empty
parentId => 0
id => 7
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
modificationTimestamp => 1160617767
serialNumber => 179
entityType => GalleryAlbumItem
onLoadHandlers => empty
parentId => 0
children => Array (0)
parents => Array (0)
parent => empty
systemLinks => Array (3)
core.SiteAdmin => Array (2)
text => Site Admin
params => Array (2)
view => core.SiteAdmin
return => 1
core.YourAccount => Array (2)
text => Your Account
params => Array (3)
view => core.UserAdmin
subView => core.UserPreferences
return => 1
core.Logout => Array (2)
text => Logout
params => Array (2)
controller => core.Logout
return => 1
{$user} Array (18)
userName => Makar
fullName => Makar
hashedPassword => [I removed this line]
email =>
language => empty
id => 6
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
linkedEntity => empty
modificationTimestamp => 1130045038
serialNumber => 1
entityType => GalleryUser
onLoadHandlers => empty
_persistentStatus => Array (2)
flags => 0
originalValue => Array (13)
userName => Makar
fullName => Makar
hashedPassword => [I removed this line]
email =>
language => empty
id => 6
creationTimestamp => 1130045038
isLinkable => 0
linkId => empty
modificationTimestamp => 1130045038
serialNumber => 1
entityType => GalleryUser
onLoadHandlers => empty
isGuest =>
isRegisteredUser => 1
isAdmin => 1
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)
Makar
Posts: 32509
the smarty debug output is not relevant.
and it doesn't show any errors.
Posts: 145
Is there any place where I can find a log of the problem? I noticed that there are only 53 tables in my database. There were 54 when it was imported to the new host. Could that be the problem? Besides this, the gallery is working fine though.
Posts: 32509
probably you uninstalled a module that had a table... no need to worry about that.
FAQ: How to set/use Gallery in debug mode?
Posts: 145
This file is 1.4MB. This is the URL: http://www.makyar.com/photos/DebugOutput.txt
Posts: 32509
there's an error at the end:
Posts: 32509
i don't know what gallery version you're running. please upgrade to the latest nightly snapshot and if the problem persists, we can investigate further.
Posts: 145
The site had stopped working (maybe when it was time to renew the random image for each album, it couldn't create the thumbnail). I upgraded to the latest build and now the gallery is browsable. Still though, it does not build resizes/thumbnails. Now it just stops in the middle of the process after a long wait for the progress bar page to load.
Posts: 32509
let's start with the information that we don't have yet:
FAQ: What information is required when I ask for help in the forums?
please also include a link to a phpinfo page and a link to your gallery.
Posts: 145
Here's the information: http://www.makyar.com/photos
Gallery version = 2.2-svn core 1.1.20
PHP version = 4.4.4 cgi
Webserver = Apache
Database = mysql 4.1.18-standard-log, lock.system=database
Toolkits = Exif, Thumbnail, ImageMagick, LinkItemToolkit
Acceleration = full/86400, full/86400
Operating system = Linux cgi1403.int.bizland.net 2.4.32-grsec #1 Fri Mar 17 12:22:27 EST 2006 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; .NET CLR 2.0.50727)
Rows in GalleryAccessMap table = 134
Rows in GalleryAccessSubscriberMap table = 23641
Rows in GalleryUser table = 313
Rows in GalleryItem table = 23567
Rows in GalleryAlbumItem table = 311
Rows in GalleryCacheMap table = 233
http://www.makyar.com/photos/phpinfo.php
The only error in the system checks is with the file integrity. It's saying that there are 48 old files. I don't know how to run the cleanup script.
Right now, there are no errors when building resizes/thumbnails. It just takes a while to get to the progress page and then stops. Sometimes the cannot find server page comes up.
Posts: 32509
if there's no g2 error on the progress bar page, there must be a php / webserver error.
please check your apache error logs and ensure php / g2 has plenty of memory.
i'd disable the exif module while debugging this issue since the exif module sometimes consumes tons of memory.
FAQ: I get only a blank screen when trying to view my Gallery, what's wrong?
FAQ: What is the webserver error log?
Posts: 145
I was getting the following message in the error log after clicking on run now:
PHP Warning: Zend Optimizer does not support this version of PHP - please upgrade to the latest version of Zend Optimizer in Unknown on line 0
After upgrading to PHP version 5.1.5, the error does not come anymore. The problem is still there though.
The memory limit is set to 24MB. Because it goes to a cannot find server page, it doesn't give me a debug output.
Posts: 32509
> Because it goes to a cannot find server page
sounds like a webserver / fatal php error.
please check the blank screen faq again. ususally there's a logged error in the apache error log in such cases.
Posts: 145
Hi valiant,
I checked the CGI error log and there's nothing in it since I last reset it (this is where I had seen the Zend error). I asked them for the Apache error log, they told me that the CGI error log is the one where all the errors are. I don't think they know what they're talking about.
Is there anyway I can change the PHP settings to have errors sent to a certain file that we can browse to? So far, the resizes are being built only when browsed to but not when clicking on run now for build thumbnails/resizes. I keep getting that cannot find server page.
Posts: 32509
your phpinfo shows that erro_log is not defined and log_errors is set to off.
you should change both ensuring that php errors get logged.
http://www.phpfreaks.com/apache_manual/page/mod/mod_cgi.html
describes the case of cgi logging. i'm not quite sure, but i'd say if error logging is disabled in php, you'll certainly get less things logged.
Posts: 145
This is what they told me: The CGI error logs are produced for your account and the Apache error logs are for the server. Hence we will not be able to provide the Apache error logs.
I changed the PHP settings but I don't know what to do now. Where do I find the error log if one is created?
Posts: 32509
you need to specify a path to an empty file with
ini_set('error_log', here);
ini_set('log_errors', 1);
ini_set('display_errors', 1);
error_reporting(E_ALL);
the file you specify as log file must be chmod 777 such that the webserver can write to it.
you need to add those lines in main.php after <?php
Posts: 145
Okay, here's what I put in:
ini_set('error_log', errorlog.txt);
ini_set('log_errors', 1);
ini_set('display_errors', 1);
error_reporting(E_ALL);
The file errorlog.txt is chmod 777 and is in the gallery directory. Do I stil have to specify the full path? When I got the cannot find server message again, the error log file hadn't changed.
Posts: 32509
> Do I stil have to specify the full path?
for what?
and what's the exact error message you get?
Posts: 145
I mean the path for the file. Where I put errorlog.txt, do I have to put the full path of the file? It's in the gallery directory.
I haven't gotten any error messages in the file or in the control panel's error log.
Posts: 32509
with full paths you always know for sure what should happen. with relative paths you're mostly ok. you should use an absolute (full) path.
@error:
i'm talking about the one you see in your browser.
Posts: 145
When I put in the full path, I get:
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Warning: Division by zero in /hermes/web09/b2104/pow.makyar/htdocs/photos/main.php on line 2
Now I'm back to just errorlog.txt. I know the PHP set error log file works because the error above was contained in it. So the first error log we set up in the PHP settings is working.
The error I'm getting is the cannot find server page. Now I'm using IE7 and the title for the error page is: Internet Explorer cannot display the webpage.
There is another log that I found, I think it's an http log or something. Here's the link: http://www.makyar.com/photos/access_log.gz I tried to look through it but I don't understand anything in it. It's a pretty big text file.
Posts: 32509
you introduced a php error yourself by editing main.php incorrectly.
please copy and paste your first few lines of main.php such that i can tell you what's wrong.
Posts: 145
That error I'm not getting anymore after removing the absolute path. Now I have the following as the first 5 lines:
<?php
ini_set('error_log', errorlog.txt);
ini_set('log_errors', 1);
ini_set('display_errors', 1);
error_reporting(E_ALL);
Posts: 32509
> ini_set('error_log', errorlog.txt);
that's wrong. you need to put the path into quotes.
ini_set('error_log', "errorlog.txt");
better yet:
ini_set('error_log', dirname(__FILE__) . '/errorlog.txt');
Posts: 145
I copied and pasted that instead of the other line. Still getting no errors in the log though and the resizes aren't being built at all.
Posts: 32509
i see that zend.ze1_compatibility_mode is enabled in your php config.
you never mentioned this.
that's our warning in the system checks page of the installer:
please disable it.
Posts: 145
Hi valiant, thanks for working through this with me.
So I disabled it and nothing's changed.
Posts: 32509
I'd like to see that myself. If you can create a new admin user / password and PM the url along with the user / password to me, that would work.
Posts: 145
I'm PMing you the info.
Thanks,
Makar
Posts: 32509
I see what you mean, I tried to find out what's wrong in 30 minutes but didn't find the problem. Can't spend more time on this.
This is really weird.
It's supposed to show the progress bar.
If I print a lot of data before we start the task, there's still no output.
Only if I prevent the task from starting and output stuff I see the data.
Can you ask your webhost if some kind of caching / output compression is enabled?
Posts: 145
I asked them and they said no. They said if I tell them what's going on, they'll try to fix it. I doubt they'll be able to.
Posts: 32509
I have no idea what's going on, more debugging would be necessary. But right now I don't have the time for that.
Posts: 145
Sure, thanks a lot for your help. Do you think I should undo the changes we made so far?
Posts: 32509
the changes to main.php? yes, undo them.