Gallery 2.3-RC-1 Feedback

talmdal

Joined: 2006-12-06
Posts: 358
Posted: Tue, 2008-07-22 14:39

This topic is for feedback on the first release candidate of Gallery 2.3

http://gallery.menalto.com/gallery_2.3_RC1_released

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Wed, 2008-07-23 00:10

hi folks,

here's the essentials:

Gallery version = 2.3-RC1 core 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.4
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.2.9 (FreeBSD)
Database = mysqlt 5.0.51a, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, Thumbnail, ImageMagick, SquareThumb, jpegtran
Acceleration = none, none
Operating system = 7.0-STABLE FreeBSD 7.0
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Rows in GalleryAccessMap table = 31
Rows in GalleryAccessSubscriberMap table = 2
Rows in GalleryUser table = 2
Rows in GalleryItem table = 1
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0

-----------------

1st issue: it seems I can't get jpegtran binary to validate:

#ls -al /usr/local/bin/jpegtran
-rwxr-xr-x 1 root wheel 28256 Jun 27 2007 /usr/local/bin/jpegtran

#jpegtran -v
Independent JPEG Group's JPEGTRAN, version 6b 27-Mar-1998
Copyright (C) 1998, Thomas G. Lane
EXIF support v 0.1 added 29-Sep-2003

in Site Admin > Plugins > Jpegtran > uninstall/reinstall works just fine (I'm assuming G2 detects the binary using it's list of predefined paths)
in Site Admin > Graphics Toolkits > Jpegtran
The path you entered isn't a valid path to a jpegtran binary.
Path to jpegtran binary: /usr/local/bin/jpegtran

however, paths for ffmpeg, ImageMagick, ZIP binary, NetPBM & Dcraw all work just fine.

2nd issue: in Site Admin > Plugins > ImageMagick > uninstall/reinstall works just fine (I'm assuming G2 detects the binary using it's list of predefined paths) - but on my /var/log/messages file, I see these 2 instances:

Jul 22 19:38:04 web kernel: pid 12756 (identify), uid 80: exited on signal 11 (core dumped)
Jul 22 19:38:09 web kernel: pid 12872 (identify), uid 80: exited on signal 11 (core dumped)

the same happens when I run "Test Settings" - but the toolkit works, it's just that everytime I create a new multisite (about 5-10 every month), I encounter that same set of core dumps. Not sure why.

3rd issue: when running through the installer to configure a multisite (which is 99% of time what I do), I want to be able to install and activate all plugins (a preselected set from the full-version tarball) on the fly - but I encounter 50+lines of errors (which forces me to scroll all the wayyy down to continue through the installer) like this:

Quote:
Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/usr/games) is not within the allowed path(s): (/path/1:/path2/:/path3/) in /path/to/gallery2/modules/core/classes/GalleryPlatform.class on line 931

- it has something to do with php_admin_value open_basedir restriction being in place, else no other issues so far. My guess is that it happens as G2 goes through its list of paths searching for binary files of ffmpeg, ImageMagick, jpegtran, NetPBM, etc... have the same problem since 2.2

-----------------

I'll post if I encounter anything else unusual. Thank you!
___________________________________________________
http://pixi.me/

 
Taomyn
Taomyn's picture

Joined: 2003-11-11
Posts: 135
Posted: Wed, 2008-07-23 09:54

Tried an upgrade of previous nightly and got during the install (not upgrade as I wanted to clear the DB etc)

Quote:
modules/icons/iconpacks/silk/add_album.png
modules/icons/iconpacks/silk/add_cart.png
modules/icons/iconpacks/silk/add_comment.png
modules/icons/iconpacks/silk/admin_performance.png
modules/icons/iconpacks/silk/bullet_arrow.png
modules/icons/iconpacks/silk/bullet_checked.png
modules/icons/iconpacks/silk/captcha.png
modules/icons/iconpacks/silk/change_password.png
modules/icons/iconpacks/silk/create_link.png
modules/icons/iconpacks/silk/custom_fields.png
modules/icons/iconpacks/silk/debug_tree.png
modules/icons/iconpacks/silk/delete_album.png
modules/icons/iconpacks/silk/delete_photo.png
modules/icons/iconpacks/silk/ecard.png
modules/icons/iconpacks/silk/edit_album.png
modules/icons/iconpacks/silk/edit_captions.png
modules/icons/iconpacks/silk/edit_permissions.png
modules/icons/iconpacks/silk/edit_photo.png
modules/icons/iconpacks/silk/exif_parser.png
modules/icons/iconpacks/silk/ffmpeg.png
modules/icons/iconpacks/silk/gallery.png
modules/icons/iconpacks/silk/general.png
modules/icons/iconpacks/silk/google_sitemap.png
modules/icons/iconpacks/silk/icon_module.png
modules/icons/iconpacks/silk/image_magick.png
modules/icons/iconpacks/silk/make_highlight.png
modules/icons/iconpacks/silk/mime_types.png
modules/icons/iconpacks/silk/moderate_spam.png
modules/icons/iconpacks/silk/modules.png
modules/icons/iconpacks/silk/move_photo.png
modules/icons/iconpacks/silk/new_items.png
modules/icons/iconpacks/silk/permalinks.png
modules/icons/iconpacks/silk/print.png
modules/icons/iconpacks/silk/quotas.png
modules/icons/iconpacks/silk/random_highlight.png
modules/icons/iconpacks/silk/random_popular.png
modules/icons/iconpacks/silk/rating.png
modules/icons/iconpacks/silk/registration.png
modules/icons/iconpacks/silk/remote.png
modules/icons/iconpacks/silk/reorder_items.png
modules/icons/iconpacks/silk/site_maintenance.png
modules/icons/iconpacks/silk/squarethumb.png
modules/icons/iconpacks/silk/thumbnails.png
modules/icons/iconpacks/silk/upgrade.png
modules/icons/iconpacks/silk/uploadapplet.png
modules/icons/iconpacks/silk/view_comment.png
modules/icons/iconpacks/silk/view_fullscreen_slideshow.png
modules/icons/iconpacks/silk/view_log_events.png
modules/icons/iconpacks/silk/watermark.png
modules/icons/iconpacks/silk/webserver.png
modules/icons/iconpacks/silk/zip_download.png

Are these really being dropped as I quite liked them?

Anyway, decided to wipe the slate clean and cleared out the code + database.

Clean install of RC-1 onto my Win2k8 server with IIS-7 (which also runs PHPBB3):

Logged in as Admin. Created new album. Tried to delete new album and get:

Quote:
Error

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_MISSING_VALUE) : Undefined map: ItemHiddenMap

* in modules\core\classes\GalleryStorage.class at line 1256 (GalleryCoreApi::error)
* in modules\core\classes\GalleryStorage.class at line 1248 (GalleryStorage::describeMap)
* in modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 1067 (GalleryStorage::describeMap)
* in modules\core\classes\GalleryStorage.class at line 533 (GalleryStorageExtras::removeMapEntry)
* in modules\core\classes\GalleryCoreApi.class at line 2935 (GalleryStorage::removeMapEntry)
* in modules\hidden\module.inc at line 206 (GalleryCoreApi::removeMapEntry)
* in modules\core\classes\helpers\GalleryEventHelper_simple.class at line 59 (HiddenModule::handleEvent)
* in modules\core\classes\GalleryCoreApi.class at line 2238 (GalleryEventHelper_simple::postEvent)
* in modules\core\classes\GalleryEntity.class at line 365 (GalleryCoreApi::postEvent)
* in modules\core\classes\GalleryFileSystemEntity.class at line 264 (GalleryEntity::delete)
* in modules\core\classes\GalleryItem.class at line 329 (GalleryFileSystemEntity::delete)
* in modules\core\classes\GalleryAlbumItem.class at line 293 (GalleryItem::delete)
* in modules\core\classes\helpers\GalleryEntityHelper_medium.class at line 115 (GalleryAlbumItem::delete)
* in modules\core\classes\GalleryCoreApi.class at line 2377 (GalleryEntityHelper_medium::deleteEntityById)
* in modules\core\ItemDeleteSingle.inc at line 69 (GalleryCoreApi::deleteEntityById)
* in main.php at line 249 (ItemDeleteSingleController::handleRequest)
* in main.php at line 103
* in main.php at line 88

System Information
Gallery version 2.3-RC1
PHP version 5.2.6 cgi-fcgi
Webserver Microsoft-IIS/7.0
Database mysqli 5.0.51b-community-nt
Toolkits ImageMagick, Thumbnail, Gd
Operating system Windows NT HOMER2 6.0 build 6001
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

I've been trying to report this for weeks and I'm hoping now that 2.3 is in RC status I might actually get some help. I appreciate my combination of Win2k8 and IIS-7 is rare for the moment, but I have PHPBB running without a hitch so I'm pretty sure my set up is ok. Please let me know what other info you want or things to try.

 
Marauder1024

Joined: 2008-07-23
Posts: 2
Posted: Wed, 2008-07-23 13:16

I upgraded from 2.2 and now many of the icons on the left pane are infinitely repeated...

UPDATE: Changing to a different Icon set (Silk or KSicons) resolves the issue and the icons display properly, but "Paul Armstrong Designs" still has the issue if I switch back.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2008-07-23 13:44

@Taomyn:

> Are these really being dropped as I quite liked them?

so that list is from "old files" ,right? we've just renamed those files. so now you have a set of old and a set of new files in your icons folders. you no longer need the old files in there, that's all that it's saying.

> Clean install of RC-1 onto my Win2k8 server with IIS-7 (which also runs PHPBB3):

very nice, that IIS 7 testing good for our test coverage.

the error about ItemHiddenMap means that there was either an issue at installation time (ItemHiddenMap not created or the Maps.inc data hasn't been stored properly in the DB) or that there's some problem in reading the meta data about tables at runtime.

if there's a problem, it's probably specific to your system, since it seems to be running on other machines.

could you please file a bug at https://sf.net/projects/gallery/ -> bugs? please include all system information that is available (minimum: windows version, IIS version, what RDBMS (MS SQL?), php version).

thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2008-07-23 13:56

@Marauder1024
Wow, that's ugly. Thanks for reporting the issue!
I've created a bug for it: https://sourceforge.net/tracker/index.php?func=detail&aid=2025778&group_id=7130&atid=107130

 
Taomyn
Taomyn's picture

Joined: 2003-11-11
Posts: 135
Posted: Wed, 2008-07-23 14:01

Ah, ok, only the last time the list of icons came up it seemed to delete all of them - I'll get rid of the old ones next time I'm on the server.

Will file a bug for the other problem.

 
Marauder1024

Joined: 2008-07-23
Posts: 2
Posted: Wed, 2008-07-23 14:01

Ok, disabled acceleration, template caching, cleared all the caches, deleted the gallery install directory and re-extracted (preserving my config.php) same issue, tested with multiple browsers/systems (IE7/WinXP, Firefox3.0.1/Linux/Mac/WinXP, Safari3.1/Mac)..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2008-07-23 14:05

@scaturan:
could you please file a bug about the openbasedir issue? those ugly warnings should sure be suppressed.

for the jpegtran issue:
can you please post the exact command line output for the following command?
jpegtran -verbose -copy all -rotate -outfile tempfile.jpg gallery2/modules/jpegtran/data/test.jpg

also, please enable buffered debug mode and click "test" on the jpegtran page and report the outputs from there.

as for the imagemagick core dumps, please file a bug. i guess it's not something we can target to fix before G2.3 since it's not that severe.

thanks!

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
talmdal

Joined: 2006-12-06
Posts: 358
Posted: Wed, 2008-07-23 14:14

@scaturan: Could your issue 1 be related to your issue 3. If /usr/local/bin/ is not in open_basedir, then it will fail with "The path you entered isn't a valid path to a jpegtran binary". Maybe the other ones are in directories that are defined in open_basedir. If you look in the autoconfigure method of the module.inc file in the graphics modules, you will see the expected directories that it will check.

http://www.timalmdal.com

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2008-07-23 14:21

@talmdal:
that would only make sense if he has 2 different jpegtran binaries on that system. one that g2 finds (autoconfig) and one that he knows of (the path that he enters).

 
MFR2000

Joined: 2008-07-23
Posts: 12
Posted: Wed, 2008-07-23 14:52

Hi everyone,

first of all thanks for the release candidate! I'm using the gallery for over 2 years now and its doing the job very well.

I installed 2.3 rc1 over version 2.2.5 with the "replace all files"-method.

The gallery works well, except the thing with the automatic running of maintenence-jobs via cron-tab.

I used the following script via daily cron-tab with gallery v. 2.2.5 which works:

Quote:
#!/bin/sh
# Gallery2 System Maintenance

# log in
wget --cookies=on --save-cookies mycookies "http://subdomain.my.url/gallery2/main.php?g2_controller=core.UserLogin&g2_form[formName]=UserLogin&g2_form[username]=admin&g2_form[password]=mypassword&g2_form[action][login]=Login"

# get auth-code
wget -O tmp.htm --cookies=on --load-cookies mycookies "http://subdomain.my.url/gallery2/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance&g2_navId=x96e9f517"
x=`grep -n -m 1 'g2_authToken' tmp.htm | awk -F = '{print $7}' | cut -d\" -f 1`

# "Build all thumbnails/resizes"
wget --cookies=on --load-cookies mycookies "http://subdomain.my.url/gallery2/main.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_navId=x502580f3&g2_authToken="$x

# "Optimize database"
wget --cookies=on --load-cookies mycookies "http://subdomain.my.url/gallery2/main.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=OptimizeDatabaseTask&g2_navId=x04bc6507&g2_authToken="$x

With the rc1 of 2.3 this does not work anymore. I get the follwing error in the new admin-section Event-logs:

Quote:
Error (ERROR_REQUEST_FORGED)in modules/core/classes/GalleryController.class at line 239 (gallerycoreapi::error)
in main.php at line 242 (gallerycontroller::assertisgenuinerequest)
in main.php at line 103
in main.php at line 88

Request variables: Array
(
[controller] => core.AdminMaintenance
[form] => Array
(
[action] => Array
(
[runTask] => 1
)

)

[taskId] => OptimizeDatabaseTask
[authToken] =>
)

I get rid of this error when I replace the URLs in the cron tab, with the current URLs from the gallery (they are little different with the ones in my cron-script)

Despite of changing the URLs with the current ones, the tasks won't start.

Do you have a hint for me?

Thanks alot in advance and for the work!

Greetings
MFR2000

Here are the system-infos of the gallery: (it's german but it should be obvious)

Quote:
Gallery-Version = 2.3-RC1 Kern 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.4
PHP-Version = 4.4.4-8+etch4 apache
Webserver = Apache/1.3.34 (Debian) PHP/4.4.4-8+etch4 mod_perl/1.29
Datenbank = mysql 5.0.32-Debian_7etch3-log, lock.system=flock
Werkzeuge = ArchiveUpload, SquareThumb, Exif, NetPBM, Ffmpeg, ImageMagick, Getid3, Dcraw, Gd, jpegtran, LinkItemToolkit, Thumbnail

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2008-07-23 16:16

@MFR2000:

> Do you have a hint for me?

does it work if you acquire a new g2_authToken before requesting the 2nd maintenance task?

you could also try the less hacky approach (doesn't require scraping of authToken):
http://codex.gallery2.org/Gallery2:How_can_I_call_a_View_or_Controller_from_the_Command_Line#Create_A_Wrapper_Script

note:
in g2.3 security gets into your way even more, automating things is getting even harder. there's not just the session timeout and the authToken, there's also admin-area session timeout which defaults to 15 minutes or so.
you might want to change that default to some higher value in site admin. alternatively, you can just login before starting each of your maintenance tasks.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
MFR2000

Joined: 2008-07-23
Posts: 12
Posted: Wed, 2008-07-23 20:55

Ok, thanks for the reply I got it to work now.

I tested every line in the console and I found out that the script didn't create any cookie for the site, so the error was in the first line and in the grepping of the authToken:

This is the old code:

Quote:
# login
wget --cookies=on --save-cookies mycookies "http://subdomain.my.url/gallery2/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_form[formName]=UserLogin&g2_form[username]=admin&g2_form[password]=mypassword&g2_form[action][login]=Login"

I copied the new code from here:
http://codex.gallery2.org/Gallery2:How_can_I_call_a_View_or_Controller_from_the_Command_Line

Quote:
# login
wget --cookies=on --save-cookies mycookies "http://subdomain.my.url/gallery2/main.php?g2_controller=core.UserLogin&g2_form[formName]=UserLogin&g2_form[username]=admin&g2_form[password]=mypassword&g2_form[action][login]=Login"

The second error was just an incorrect output of grep (word 5 instead of 7):

Quote:
x=`grep -n -m 1 'g2_authToken' tmp.htm | awk -F = '{print $5}' | cut -d\" -f 1`

Now, it's working again, with those little changes.

Greetings
MFR2000

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Wed, 2008-07-23 23:50
valiant wrote:
@scaturan:
could you please file a bug about the openbasedir issue? those ugly warnings should sure be suppressed.

yep, all set.

valiant wrote:
for the jpegtran issue:
can you please post the exact command line output for the following command?
jpegtran -verbose -copy all -rotate -outfile tempfile.jpg gallery2/modules/jpegtran/data/test.jpg

Quote:
gallery2]# jpegtran -verbose -copy all -rotate -outfile tempfile.jpg modules/jpegtran/data/test.jpg
Independent JPEG Group's JPEGTRAN, version 6b 27-Mar-1998
Copyright (C) 1998, Thomas G. Lane
EXIF support v 0.1 added 29-Sep-2003
usage: jpegtran [switches] [inputfile]
Switches (names may be abbreviated):
-copy none Copy no extra markers from source file
-copy comments Copy only comment markers (default)
-copy all Copy all extra markers
-copy exif Copy EXIF marker and omit JFIF if EXIF
-optimize Optimize Huffman table (smaller file, but slow compression)
-progressive Create progressive JPEG file
Switches for modifying the image:
-crop WxH+X+Y Crop to a rectangular subarea
-drop +X+Y filename Drop another image
-grayscale Reduce to grayscale (omit color data)
-flip [horizontal|vertical] Mirror image (left-right or top-bottom)
-perfect Fail if there is non-transformable edge blocks
-rotate [90|180|270] Rotate image (degrees clockwise)
-transpose Transpose image
-transverse Transverse transpose image
-trim Drop non-transformable edge blocks or
with -drop: Requantize drop file to source file
Switches for advanced users:
-restart N Set restart interval in rows, or in blocks with B
-maxmemory N Maximum memory to use (in kbytes)
-outfile name Specify name for output file
-verbose or -debug Emit debug output
Switches for wizards:
-scans file Create multi-scan JPEG per script file

If I put a value of 90 for -rotate - I get this:

Quote:
gallery2]# jpegtran -verbose -copy all -rotate 90 -outfile tempfile.jpg modules/jpegtran/data/test.jpg
Independent JPEG Group's JPEGTRAN, version 6b 27-Mar-1998
Copyright (C) 1998, Thomas G. Lane
EXIF support v 0.1 added 29-Sep-2003
Start of Image
JFIF APP0 marker: version 1.02, density 100x100 0
Miscellaneous marker 0xec, length 15
Adobe APP14 marker: version 100, flags 0xc000 0x0000, transform 1
Define Quantization Table 0 precision 0
Define Quantization Table 1 precision 0
Start Of Frame 0xc0: width=50, height=50, components=3
Component 1: 1hx1v q=0
Component 2: 1hx1v q=1
Component 3: 1hx1v q=1
Define Huffman Table 0x00
Define Huffman Table 0x01
Define Huffman Table 0x10
Define Huffman Table 0x11
Start Of Scan: 3 components
Component 1: dc=0 ac=0
Component 2: dc=1 ac=1
Component 3: dc=1 ac=1
Ss=0, Se=63, Ah=0, Al=0
End Of Image

Quote:
also, please enable buffered debug mode and click "test" on the jpegtran page and report the outputs from there.

attached 2 GIF screen caps.

Quote:
as for the imagemagick core dumps, please file a bug. i guess it's not something we can target to fix before G2.3 since it's not that severe.

yep, all set.

Thank you!

___________________________________________________
http://pixi.me/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2008-07-24 00:07

@scaturan, talmdal:
talmdal was indeed right. it's an open basedir issue. see the warning at the top of the page? that's it.
so the error is correct. we could just do a better job of giving a better error message.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Thu, 2008-07-24 00:47
valiant wrote:
@scaturan, talmdal:
talmdal was indeed right. it's an open basedir issue. see the warning at the top of the page? that's it.
so the error is correct. we could just do a better job of giving a better error message.

hrm, but why does ZIP, ImageMagick, dcraw, NetPBM validate and not jpegtran (they all reside in /usr/local/bin/ and have 755 permissions)- and I don't have /usr/local/bin/ anywhere on open_basedir which baffles me a little.
___________________________________________________
http://pixi.me/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2008-07-24 08:58

> and I don't have /usr/local/bin/ anywhere on open_basedir which baffles me a little.

that's why you get the warning. if a path prefix isn't in open_basedir, then it's not open. it's a whitelist.

> but why does ZIP, ImageMagick, dcraw, NetPBM validate and not jpegtran (they all reside in /usr/local/bin/ and have 755 permissions)

i'm pretty sure they're not in /usr/local/bin/ (please check again, maybe it's /usr/home/scaturan/) or there are copies of the binaries in another location.
if you go to site admin -> imagemagick, what path does it show?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Thu, 2008-07-24 11:08
valiant wrote:
i'm pretty sure they're not in /usr/local/bin/ (please check again, maybe it's /usr/home/scaturan/) or there are copies of the binaries in another location.
if you go to site admin -> imagemagick, what path does it show?

whereis and find only point to /usr/local/bin/
g2_PluginParameterMap also point to /usr/local/bin/ - attached is a screen shot.

anyhow, adding /usr/local/bin/ to the php_admin_value open_basedir within the <Directory> container where ~/gallery2/ resides validates the "Test Settings" for jpegtran - I guess its the quickest and only way, heh.

Thanks!

___________________________________________________
http://pixi.me/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2008-07-24 12:25

@scaturan:
if you want to use stuff from /usr/bin/local in php, and if you use open_basedir, then this path should be in there too.
why it is working anyway escapes me. either some symlinking going on (one of your open_basedir paths pointing to /usr/local/bin or the other way around. or a vulnerability in php (not enforcing open_basedir correctly), which wouldn't be very surprising given the history of related bugs.

note: you shouldn't rely on open_basedir anyway. there are better security measures.

anyhow, good that this isn't a bug in g2. but we should give a better error message.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
julio.vidal.moro

Joined: 2008-07-24
Posts: 1
Posted: Thu, 2008-07-24 17:05

Hello friends,

I upgraded from 2.2.5 and now the albumselect module has disappeared from the left pane....
I try to uninstall and reinstall the module but it doesn't work.

I have check the configuration of theme (matrix) and is correct.

Can you help me?

Thanks in advance and great job.

JULIO.
www.vidalnet.org

 
momo-i
momo-i's picture

Joined: 2008-07-03
Posts: 19
Posted: Thu, 2008-07-24 23:44

Hi all,

Now I've installed gallery-2.3-rc-1-developer, but following file wasn't found.

install.css:.progressMade { background: #ffeda8 url('images/btnBGor.gif') bottom; border: thin solid #ddd; }

File does not exist: install/images/btnBGor.gif

Thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2008-07-25 11:52

@momo-i:

where do you see that error?

i've just verified that the checksums (MANIFEST files) in the developer packages are correct.

if you see the error at install/index.php -> system checks, then it's probably a sign that you should download gallery2 again and replace the gallery2 folder on your server.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Fri, 2008-07-25 13:07

Hi,
Installed developer copy of Gallery 2.3 in a multi-site with absolutely no problems what so ever. Very clean. Great job to all involved. I plan on 10 different sites within this gallery, I will let you know if there is any problem achieving that goal. [hope to have all 10 created by the end of the day]

B
-----------------------
Gallery version = 2.3-RC1 core 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.4
PHP version = 4.3.11 apache
Webserver = Apache
Database = mysqlt 4.1.20-max-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, SquareThumb, ImageMagick
Acceleration = full/1814400, full/1814400
Operating system = Linux web30.opentransfer.com 2.6.14.4 #2 Wed Jan 4 22:51:21 CST 2006 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Rows in GalleryAccessMap table = 31
Rows in GalleryAccessSubscriberMap table = 2
Rows in GalleryUser table = 2
Rows in GalleryItem table = 1
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 3

 
momo-i
momo-i's picture

Joined: 2008-07-03
Posts: 19
Posted: Fri, 2008-07-25 15:26

Hi valiant,

valiant wrote:
@momo-i:

where do you see that error?

Since an error is not displayed at the time of installation but images/btnBGor.gif is described by install/install.css(line 169), it is logged on Apache as an error.
it's also similarly described in install.css by SVN.

Thanks.

 
talmdal

Joined: 2006-12-06
Posts: 358
Posted: Fri, 2008-07-25 16:05

@momo-i
It does seem to be missing thanks

http://www.timalmdal.com

 
talmdal

Joined: 2006-12-06
Posts: 358
Posted: Fri, 2008-07-25 16:19

Its been corrected in trunk and will be in the next release candidate

http://www.timalmdal.com

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Fri, 2008-07-25 20:21

I added the multi lang plugin and after I got this event log.

Fri 25 Jul 2008 07:23:34 AM CDT PHP Error Link 71.10.252.94 [Notice] Undefined index: AdminRepository in file /hsphere/local/home/...../.......com/branch1/g2data1/smarty/templates_c/%%3780595362/matrix/%%C0^C03^C0380F2F%%AdminLanguageManager.tpl.php on line 177
----------------------------------
Event Details
Date Fri 25 Jul 2008 07:23:34 AM CDT
Type PHP Error
Location http://.../branch1/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminLanguageManager
User Id 6
Client 71.10.252.94
Summary [Notice] Undefined index: AdminRepository in file /hsphere/local/home/..../....com/branch1/g2data1/smarty/templates_c/%%3780595362/matrix/%%C0^C03^C0380F2F%%AdminLanguageManager.tpl.php on line 177
Referer http://......com/branch1/main.php?g2_view=core.SiteAdmin&g2_subView=captcha.CaptchaSiteAdmin
Details Undefined index: AdminRepository Request variables: Array ( [view] => core.SiteAdmin [subView] => core.AdminLanguageManager )
----------------------------------

My question is, do this logs go away when it is fixed?

If these message just hang there
after having a active Gallery, wouldn't the messages get kind of overwhelming?

Could there be a box to delete the logs as they are solved?

Are the Language Settings & the multilang plugin not compatiable with each other? (I did deactivate the ML plugin)

thanks
B

 
MFR2000

Joined: 2008-07-23
Posts: 12
Posted: Fri, 2008-07-25 21:45

I found out two little bugs when adding Items to the gallery;

1.)

If I add Items (tested with adding from web browser and from local server path), I got the info-message that 0 Items were added successfully.

When I check the album, Items were indeed added successfully, but the info-message short after adding the items, is apparently not counting the quantum.

I enabled medium acceleration and template caching. Logged in as admin.

EDIT: This only happens, if I click "Continue...". If I just wait for the browser, the quantum of the pictures added recently is displayed correctly.

2.)

Sometimes I can't logout (the session remains logged in) until I close the browser (Firefox 3.0.1)

Greetings
MFR2000

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sat, 2008-07-26 05:40

I'm getting the logout error too, and I don't even have any photos loaded, I was just switching themes back and forth
--------------
Error (ERROR_REQUEST_FORGED)
in modules/core/classes/GalleryController.class at line 239 (gallerycoreapi::error)
in main.php at line 242 (gallerycontroller::assertisgenuinerequest)
in main.php at line 103
in main.php at line 88
in main.php at line 3
-------------
solved this, in the general tabs under sessions increase the time from whatever you have it set at.(hour/day/weeks/)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 11:53

@Reiddust:
i guess your change in session lifetime/activity timeout didn't really affect the other issue and it was purely coincidental that the error has disappeared at the same time.
you could verify this theory by changing the session times back again.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 11:54

@MFR2000:
regarding logout, do you use the HTTP auth module, is it active?

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 12:30

@MFR2000:
can you consistently reproduce the "items added: 0" issue?
tried it on my box and I can't.

we thought to have fixed this issue a few months ago. it's about storing the session information (=how many items have been added) in the database before you request the page that shows that information such that the information is ready to be shown when you request it.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sat, 2008-07-26 12:52

I think there's a defect with the way admin sessions are handled in 2.3 which shows up if a sub-view of core.SiteAdmin correctly returns an ERROR_MISSING_OBJECT error. Firstly you get stuck in an infinite loop of re-entering admin credentials.

When the sub-view returns an error main.php line 464 calls for a permissions check, GalleryView::_permissionCheck() line 700 raises that to an ERROR_PERMISSION_DENIED then throws you to log in again with a "The administration session has expired, please re-authenticate to access the administration area" prompt. If you enter correct credentials you get sent to back to the view which generated the ERROR_MISSING_OBJECT and round we go again.

This seems to contradict the desired functionality as documented in the comment-block:

     * If the given status indicates permission denied or missing object and this is a guest
     * user, redirect to the login view.  Otherwise return given status to be shown by the
     * error handler.

Secondly and even more wierdly, entering incorrect credentials - even a non-existent username at this page results in a successful login as the previous user and takes you to the main page not the error display from the previous error. I haven't checked yet if this is just in cases where there's an ERROR_MISSING_OBJECT, or all admin re-logins.

[edit]OK, I get it.. you don't get re-authorized if you get the credentials wrong - but you don't get logged out either, and it certainly feels like you should. It feels defective to put in a wrong username/password then see the 'Welcome, Gallery Administrator!" message.

 
MFR2000

Joined: 2008-07-23
Posts: 12
Posted: Sat, 2008-07-26 12:57

@valiant:
Yes, I can reproduce the issue with the number of the added items but only when I click on "Continue..." right after processing the images.
If I just wait for the browser (that auto refers to the info-message), the number of added items is displayed correct and also shows my remaing quota of space on the server.

Im using the HTTP auth module and its activated. I tried to set the admin-session timeout to 1 hour - the logout works - but it works even if I set the timeout to endless. It seems not to be reproducible.

Greetings
MFR2000

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 13:05

@Reiddust:
@typo in AdminLanguageManager which leads to event log entry:
Fixed, thanks for reporting.

Regarding event log entries:
- don't worry about the size of the event log. the size is limited to 1000 entries and each entry is pretty small. the size isn't a problem.
- the log is a circular buffer, that means that every time when a new event is logged and you already have 1000 entries in your log, the oldest entry is replaced with the newest one. the log doesn't grow larger than 1000 entries.

and yes, the usability of the log isn't great yet. your suggestions to clear all or a specific entry are good ones. we'd also like to offer a filtered view, such that you quickly can filter out things you're not interested in.

can you please file a feature request for your suggestions at: http://sf.net/projects/gallery/ -> trackers -> RFE (request for enhancement)?
thanks!

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 13:11

@MFR2000:
regarding the "item addded: 0" issue, I can't reproduce it (yes, even when using the continue link). that just means that it's a bit harder to fix than if it was easy reproducible. can you please file a bug at http://sf.net/projects/gallery/ -> trackers -> bugs?

please also include some information about your system / browser in the bug report. e.g. copy the information from site admin -> maintenance -> system information.

thanks!

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sat, 2008-07-26 13:53

@valiant
This is the logout error message. It happened 10 times last night.
Cleared by clearing Internet Temp cache. The session change was a fluke.
I had it opened to *forever* as session time outs have been a problem
on my 2.25 gallery. But as alecmyers suggested putting it on *forever*
if there is an error it'll loop forever, so I changed all 3 to 1 day.
-----------------------------------
Date Sat 26 Jul 2008 12:45:52 AM CDT
Type Gallery Error
Location http://......../branch1/main.php?g2_controller=core.Logout&g2_return=%2Fbranch1%2Fmain.php&g2_authToken=549aa84e3a79
User Id 6
Client 71.10.252.94
Summary ERROR_REQUEST_FORGED
Referer http://root.reiddust.com/branch1/main.php
Details Error (ERROR_REQUEST_FORGED)in modules/core/classes/GalleryController.class at line 239 (gallerycoreapi::error) in main.php at line 242 (gallerycontroller::assertisgenuinerequest)
in main.php at line 103 in main.php at line 88 in main.php
at line 3 Request variables: Array ( [controller] => core.Logout [return] => /branch1/main.php [authToken] => 549aa84e3a79 )
-----------------------------------

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sat, 2008-07-26 14:03

Also, being a rich PHP environment, last night I ran into a strange problem
where I couldn't upload anything, and so I asked at my server in the live chat
and they told me to wait an hour,as they were having issues.
...sure enough everything was better. So I wonder
if Gallery is vurneable to server *burpings* (what I call it)

but what ended up is I got this event log when the server *burped*
--------------------------------------
Date Fri 25 Jul 2008 07:59:19 PM CDT
Type Gallery Error
Location http://......./branch1/main.php
User Id 6
Client 71.10.252.94
Summary UPDATE g2bo_Entity SET gb_modificationTimestamp=?,gb_serialNumber=? WHERE gb_id=? AND gb_serialNumber=? (1217033958|4|7|3)
Referer http://...../branch1/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_itemId=7

Details Error (ERROR_OBSOLETE_DATA) : UPDATE g2bo_Entity SET gb_modificationTimestamp=?,gb_serialNumber=? WHERE gb_id=? AND gb_serialNumber=? (1217033958|4|7|3) in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 362
(gallerycoreapi::error) in modules/core/classes/GalleryStorage.class at line 324
(gallerystorageextras::saveentity) in modules/core/classes/GalleryEntity.class at line 294
(mysqlstorage::saveentity) in modules/core/classes/GalleryItem.class at line 414
(galleryfilesystementity::save) in modules/core/classes/GalleryAlbumItem.class at line 256
(galleryitem::save) in modules/core/ItemEditItem.inc at line 253
(galleryalbumitem::save) in modules/core/ItemEdit.inc at line 84
(itemedititem::handlerequest) in main.php at line 249
(itemeditcontroller::handlerequest) in main.php at line 103
in main.php at line 88 in main.php at line 3
Request variables: Array ( [return] => /branch1/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_itemId=7 [formUrl] => /branch1/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemEdit&g2_itemId=7 [authToken] => 2568fb7e0841 [controller] => core.ItemEdit [form] => Array ( [originationTimestamp] => 1216987780 ) [itemId] => 7 [editPlugin] => ItemEditItem )
---------------------------------------------------

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 14:07
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2008-07-26 14:13

@Reiddust:
can you reproduce the "logout -> error" issue every time? if not, how often does it happen (e.g. 50% of the time you try to logout)?
it's hard to diagnose problems that we can't reproduce.

regarding the "burping" of your server :)
the error you see is probably a symptom of the problems of your server before. it's a robustness measure by g2 mainly to handle changes by concurrent users that you have ran into there. this error protects galery from data corruption to some degree. so it also helps a bit to protect gallery from server hardware / filesystem failures. but only to some degree.
you should be able to get rid of the error by clearing your entity cache (lib/support/index.php -> cache).

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sat, 2008-07-26 14:25
Quote:
and yes, the usability of the log isn't great yet. your suggestions to clear all or a specific entry are good ones.

I think the event log is a GREAT idea, and extremely helpful to you programmers when trying to solve a problem, that the error is still available. Especially on the help forum here.
Users can post the error instead of trying to reproduce it.
But at the same time, just having a *simple checkbox before each error to be able to delete
them as they are solved.
*I realize in saying that it's a day worth of programming to rearrange the furniture :)

In argument though, having a list of 1,000 would give a clear trail of breadcrumbs to a problem maybe not obvious in one error. Maybe just change the amount from 1,000 to 50?
-------------------------------------------
But I do have to say that this version is the cleanest/smoothest yet. I'm really having fun building the pages!

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sat, 2008-07-26 21:06

@valiant
because the server was acting up last night I don't think
I have a clear picture of the logout error, I'll watch it today.
I would have to say it happened 10 times last night, randomly,
but seemingly after uploading many photos.
------------------------
Successfully added 2 files.
Added me_jump1_ab.jpg
[You are using 2.59 MB of your allotted 4 GB]
Added 2_chi01_ab.jpg
[You are using 2.62 MB of your allotted 4 GB]
Add more files<-if you just keep adding files and not returning to the main page
it seems to happen more so?

here's the times it happened
(the ones within a couple minutes are before I cleared the int.temp cache)

Sat 26 Jul 2008 12:45:57 AM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Sat 26 Jul 2008 12:45:52 AM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Sat 26 Jul 2008 12:45:47 AM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Sat 26 Jul 2008 12:35:20 AM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Sat 26 Jul 2008 12:35:16 AM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Sat 26 Jul 2008 12:35:08 AM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Fri 25 Jul 2008 05:47:05 PM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Fri 25 Jul 2008 05:36:17 PM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Fri 25 Jul 2008 04:04:46 PM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
Fri 25 Jul 2008 04:04:37 PM CDT Gallery Error Link 71.10.252.94 ERROR_REQUEST_FORGED
-------------------------------------------------------------
Branch #2 after going for hours and hours without a problem, I
logged in, went to site admin/registration then went back to mainpage and tried to log out and got error message ^. Clicked link back into Gallery and went to add items and then logged out successfully [without clearing the internet cache] from there.
-------------------------------------------------------------
It was interesting to see the message for the quota allocations.
My server used to allow you to designate space for each sub-domains, but now they just bulk
it all together, so I think it helps the program to know how much space is allowed admins/users etc.
So the quota module is working perfectly :D
^ though it might be nice to have some place that tells
you how much space you have left?/or used? There's plenty
of page space available on the Quotas Administration.
Like a progress bar or something? *you have used 200mb out of 4GB's*
update:
I noticed the MB #'s go up every time I add a item,
I got it now, I thought at first those were just the sizes of
each item...sometimes it helps to step away to understand it better

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Sat, 2008-07-26 20:35

Before I go enjoy a perfect day outside,
the one thing that keeps coming up for me over and over is a site admin shoutbox?
So that Admin's can communicate while working? My Admin's respectfully live in
Romania & Latvia and have trouble using outside AIM programs etc. [flash] So it would great
just to have a simple way to chat with each other within the program itself.

I don't think it should be available to the guest users, as it would take too much space,
but just have it available for different registered groups & site admins. [something controled by permissions]

Or do you know of a plugin compatiable with Gallery that some of the CMS sites use?
I don't have Gallery as an embedded program.
------------------------------------------
I built my 2nd branch of my 10 branch multi-site, and deliberatly
didn't update the plugins page when installing it. Added all the
plugins manually without any problems. Permalink module lets me
know I need to activate URL rewrite. Very smooth. #2 a little slow, but that may be the internet/and or my server.
-------------------------------------------
Also not able to reproduce error in continue. If you're patient,
the processing ends, and automatically takes you to the text of the uploaded pics.
Successfully added 1 file.
Added 0b26fa85.jpg
You are using 2.09 MB of your allotted 5 GB.
Add more files

Maybe in clicking Continue, it's cancelling out that automatic phase and forcing it to do what it already wants to do? Overloading the command with the same command, causing an error

 
peterparnes

Joined: 2006-02-12
Posts: 2
Posted: Sun, 2008-07-27 16:07

Hi

I am trying to upgrade from 2.2.5 to 2.3-rc1 and I am having some issues.

The core upgrade went well but when I enter step 5 to upgrade the plugins I get the following error:

Quote:
Error (ERROR_MISSING_VALUE) : Unknown entity type: GalleryUser

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2125 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2097 (GalleryStorageExtras::describeEntity)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 122 (GalleryStorageExtras::describeEntity)
* in modules/core/classes/GalleryStorage.class at line 313 (GalleryStorageExtras::loadEntities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
* in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById)
* in upgrade/index.php at line 222 (GalleryCoreApi::loadEntitiesById)
* in upgrade/steps/UpgradeOtherModulesStep.class at line 46
* in upgrade/index.php at line 186 (UpgradeOtherModulesStep::processRequest)

Here is the last part of the debug output:

Quote:
(mysqlt):
SELECT
g2_PluginParameterMap.g_itemId,
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'module'
AND
g2_PluginParameterMap.g_pluginId = 'core'
AND
g2_PluginParameterMap.g_itemId = 0

(mysqlt):
SELECT
g2_UserGroupMap.g_userId,
g2_User.g_userName
FROM
g2_UserGroupMap, g2_User
WHERE
g2_UserGroupMap.g_groupId = 3
AND
g2_UserGroupMap.g_userId = g2_User.g_id

ORDER BY
g2_User.g_userName
LIMIT 1

(mysqlt): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (6)

(mysqlt): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
AND g2_Schema.g_type = 'entity' AND g2_PluginMap.g_active = 1

(mysqlt): SELECT g_info FROM g2_Schema WHERE g2_Schema.g_type = 'entity'

realpath(/local/1/httpd/www.parnes.com/gallery/modules/core/classes/../../../)
realpath(/local/1/httpd/www.parnes.com/gallery/)

And here is the system info:

Quote:
Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.2.4-2ubuntu5.2 apache2handler
Webserver = Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.2 with Suhosin-Patch
Database = mysqlt 5.0.51a-3ubuntu5.1, lock.system=flock
Toolkits = ArchiveUpload, NetPBM, Getid3, ImageMagick, Gd, Dcraw
Acceleration = full/900, full/900
Operating system = Linux public 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686
Default theme = classic
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Rows in GalleryAccessMap table = 73
Rows in GalleryAccessSubscriberMap table = 127253
Rows in GalleryUser table = 65
Rows in GalleryItem table = 18526
Rows in GalleryAlbumItem table = 265
Rows in GalleryCacheMap table = 24

Anybody have any tips on how to proceed?

-Peter
http://www.parnes.com/

 
janbanan

Joined: 2005-09-19
Posts: 35
Posted: Mon, 2008-07-28 11:19

Hi, I also have the same issues as peterparnes above.

At step 5 in the upgrader I get:

Quote:
Unable to initialize Gallery session
Upgrade Plugins
Stack Trace:
Error (ERROR_MISSING_VALUE) : Unknown entity type: GalleryUser
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2125 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2097 (GalleryStorageExtras::describeEntity)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 122 (GalleryStorageExtras::describeEntity)
in modules/core/classes/GalleryStorage.class at line 313 (GalleryStorageExtras::loadEntities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById)
in upgrade/index.php at line 222 (GalleryCoreApi::loadEntitiesById)
in upgrade/steps/UpgradeOtherModulesStep.class at line 46
in upgrade/index.php at line 186 (UpgradeOtherModulesStep::processRequest)

And the Debug Output says:

Quote:
getParameter id.adminGroup for core plugin
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_itemId,
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'module'
AND
g2_PluginParameterMap.g_pluginId = 'core'
AND
g2_PluginParameterMap.g_itemId = 0
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_UserGroupMap.g_userId,
g2_User.g_userName
FROM
g2_UserGroupMap, g2_User
WHERE
g2_UserGroupMap.g_groupId = 3
AND
g2_UserGroupMap.g_userId = g2_User.g_id

ORDER BY
g2_User.g_userName
LIMIT 1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (6)

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
AND g2_Schema.g_type = 'entity' AND g2_PluginMap.g_active = 1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g_info FROM g2_Schema WHERE g2_Schema.g_type = 'entity'

--------------------------------------------------------------------------------

realpath(/xyz/xyz/www.froden.com/xyz/gallery2/modules/core/classes/../../../)
realpath(/xyz/xyz/www.froden.com/xyz/gallery2/)

What to do?

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2008-07-28 14:27
 
peterparnes

Joined: 2006-02-12
Posts: 2
Posted: Mon, 2008-07-28 15:15

I looked at the other thread but I have already tried that without success. :(

-Peter
http://www.parnes.com/

 
cferron

Joined: 2006-05-01
Posts: 31
Posted: Mon, 2008-07-28 19:04

Ignore this post - Delete it.... the correct one follows.

 
cferron

Joined: 2006-05-01
Posts: 31
Posted: Mon, 2008-07-28 19:03

I get this whenever I try to delete an album I created... I cannot select the delete album from the dropdown menu, I have to click on the gallery then select DELETE ALBUM from the left menu.

Also jpegtran does not seem to automatically rotate pictures, but this is another story.

The action you attempted is not permitted.

Back to the Gallery

Quote:
Error Detail -
Error (ERROR_BAD_PARAMETER) : Class ItemDeleteSingleView not defined in core.ItemDeleteSingle

* in modules/core/classes/GalleryView.class at line 194 (GalleryCoreApi::error)
* in modules/core/ItemAdmin.inc at line 123 (GalleryView::loadView)
* in modules/core/classes/GalleryView.class at line 292 (ItemAdminView::loadTemplate)
* in main.php at line 463 (GalleryView::doLoadTemplate)
* in main.php at line 103
* in main.php at line 88

System Information
Gallery version 2.3-RC1
PHP version 5.2.6 cgi-fcgi
Webserver Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysqli 5.0.45-community-log
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux box326.bluehost.com 2.6.22-19_1.BHsmp #1 SMP Thu May 22 08:08:32 MDT 2008 x86_64
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

Claude Ferron
Subito Photo
Viewing system solution for Event Photography
www.subitophoto.net/vss

 
Reiddust

Joined: 2006-05-27
Posts: 117
Posted: Tue, 2008-07-29 01:52

I am happy to report that I have successfully loaded all 10 multi-sites without an trouble what-so-ever. Have had random logout problems, but they happen infrequently I can't figure out a source of the error, whether it gallery or my webserver. very happy :D I am looking forward to *testing* the upgrade process of all 10 (11) gallery's
---------------------------------------------
@cferron
...in the EXIF/IPTC Settings,
there's a box to check
When photos are added should we rotate them based on EXIF orientation data?
Rotate pictures automatically
Preserve Original on Rotating

not sure if this is your solution, but worth a try?
------------------------------------------
@valiant
can you please file a feature request for your suggestions at: http://sf.net/projects/gallery/ -> trackers -> RFE (request for enhancement)?
thanks!
Ok will do. Sorry couldn't get to this sooner, weather has been wicked here