Page 1 of 1

Gallery Menu Undefined on localhost only

Posted: 21 Aug 2009, 23:37
by Bob Hunter
I have everything working fine on the production server. Copied everything to my local drive to work offline. Imagevue starts, Gallery menu appears. But, when you click it, it just says "Undefined".

Ran the imagevue-check.php and all items were green checkmarks.

Checked all the folder xml files and there were no errors reported.

Local setup is wanpserver 2.x.

Anyone had this problem and figured out what's different?

Thanks,

Bob

Posted: 22 Aug 2009, 04:04
by Nick
Check Admin side on this link http://localhost/gallery/imagevue, it might display more errors, probably can't write to file or something.

Next release will have some serious improvements in error reporting.

At the moment, to see what's going on, some useful info can be found in the output of those scripts:
http://localhost/gallery/?a=folders
http://localhost/gallery/?a=files

Ran the a=folders and a=files test

Posted: 22 Aug 2009, 10:24
by Bob Hunter
This is the response:

Only one top level element is allowed in an XML document. Error processing resource 'http://localhost/LittleTSquares/vue/?a...

<b>Deprecated</b>: Function set_magic_quotes_runtime() is deprecated in <b>C:\wamp\www\LittleTSquares\vue...

I checked out all the xml files and they looked fine (no double top level elements). Unfortunately, the error report doesn't show the actual file name and location.

Any ideas?

Posted: 22 Aug 2009, 15:28
by carter2
Was having a similar problem, not with Imagevue though.
This might help >>HERE<<

Set Magic Quotes

Posted: 22 Aug 2009, 16:27
by Bob Hunter
I checked out Set_Magic_Quotes and it was turned on on the production server (where everything works fine) and turned off on my local server (where I get Undefined).

When I turned it on, I still got Undefined showing in the Gallery folder listing and still got the same message about magic quotes and xml problems.

Bob

Posted: 22 Aug 2009, 18:14
by carter2
Just out of curiosity, same php versions on the servers?

Posted: 22 Aug 2009, 22:44
by Bob Hunter
Version 5.2.8 on the server and 5.3.0 on localhost

Posted: 24 Aug 2009, 06:06
by Nick
Just edit php.ini there will be list of disabled functions, it's called "disable_functions" remove set_magic_quotes_runtime().

Posted: 24 Aug 2009, 10:28
by Bob Hunter
FIXED!

In WampServer, there is a menu item under PHP settings where you can turn-off Magic Quotes Runtime. (changing the php.ini's, of which there are several, didn't work because it created the settings on the fly from another file).

I still had a problem, but that was because the code was still calling set_magic_quotes_runtime(0) in the common.inc.php file. When I commented that code out, the gallery folder list worked.

Thanks everyone for the help.