[SOLVED]Call to undefined function:style() after new install

renzema

Joined: 2005-04-03
Posts: 2
Posted: Sun, 2005-04-03 10:12

Hi,

I thought that I would play around it G2 a bit. I successfully installed the Dark Fibre build last night, but had issues moving my images to it (timeout issues on large albums, and the olympus exif error as well)

Thinking that maybe a later build might have fixed these, I tried installing the latest version on top of it, however, now I can't even get gallery to open. Instead I get the following error:

Fatal error: Call to undefined function: style() in C:\gallery2\g2data\smarty\templates_c\%%1739383502\%%D8^D8F^D8F38485%%global.tpl.php on line 19

To troubleshoot, I deleted my Gallery2 folder, removed the database tables, emptied the g2data folder.

Then I reinstalled the Dark Fibre beta. No problems.
Then I copied the files from gallery2.2005-04-02-09-33-23.zip on top of my gallery2 folder, and ran galleryhost/update. The update went smoothly (I removed the 40 or so files that it said we no longer needed, thinking that these might be causing the problem), but when I try to go the /gallery2, I get the error shown above.

Any ideas?

Josh

----

Gallery URL (optional):
Gallery version:gallery2.2005-04-02-09-33-23
Webserver (with version): Apache2
Datatabase (with version): MySQL4.1
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: Windows XP
Web browser/version:
G1 version (for migration bugs):

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2005-04-03 16:32

Instead of throwing down Beta 1, then a nightly... try just throwing in a nightly clean. You also might consider having your /g2data/ dir NOT be web accessible so that G2's image firewall works well. IE, you use "c:\websites\domain.com\" put the "gallery2" folder inside that directory, but put the "g2data" directory into "c:\websites\" (or anywhere not web accessible).

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-04-03 17:15

lib/tools/test/index.php FlushTemplates
also available in Site Admin / Maintenance in the latest nightly build / current cvs.

 
renzema

Joined: 2005-04-03
Posts: 2
Posted: Sun, 2005-04-03 17:31

I have my g2data directory in a separate directory from the main hierarchy.

I could have sworn that I tried the FlushTemplates the first time that I started having problems, but I tried it again just now and that seems to have done the trick.

Many thanks,

Josh