Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 239
Total: 239

Author Topic: Gallery.Template.php  (Read 9503 times)

0 Members and 1 Guest are viewing this topic.

Offline jasonb

  • Member
  • *
  • Posts: 4
    • View Profile
Gallery.Template.php
« on: February 12, 2007, 07:15:56 pm »
Hi,

I just downloaded the 1.7.1 lite version. I've downloaded to my site using the package manager and everything goes well until it gets to the redirect. Upon redirect I get "Unable to load the 'main' template.

I'm using the latest stable SMF version 1.1.2

After looking at files put into my SMF folder, I can see that everything has been placed as should be.. I have a gallery link in my menu on the default theme and I have a link to the Gallery Administration in my admin panel. However if I click the link in the admin panel I get "Unable to load the 'settings' template. "

Now, digging around in my files I see that the xml file calls for a file "Gallery.template.php" to be created. It has in fact created that file in my /themes/default/ folder as it should BUT the file size is 0bytes. There's nothing in the file.

Going through the zip package I do not see where the information propogates from for the gallery.template.php file... So... Am I missing a file in my zip download? Or is the file simply not being written to?

Thanks in advance for any help in resolving the issue.
-Jason

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Gallery.Template.php
« Reply #1 on: February 12, 2007, 08:00:27 pm »
I would unzip the Gallery.template.php file from the zip file then copy it to your themes/default/ folder
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline jasonb

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Gallery.Template.php
« Reply #2 on: February 12, 2007, 08:23:34 pm »
That's just it. There's no Gallery.Template.php file in the zip.

In package-info.xml the info for "requiring" the file is there, but the actual file is not in the zip package, therefore it's output is 0-bytes. It's just being dropped in as part of the XML file command.

Code: [Select]
- <install for="1.1.2,1.1.1,1.1, 1.1 RC3, 1.1 RC2">
  <readme type="file">ReadMe.txt</readme>
  <modification type="file" reverse="false" format="xml">smfgallery.xml</modification>
  <require-file name="Gallery.php" destination="$sourcedir" />
  <require-file name="Gallery.template.php" destination="$themedir" />

Here is a list of what was in the zip.
List files in package
Files in archive 42Gallery1.7.1.zip:
smfgallery.xml (5743 bytes)
gallery.gif (873 bytes)
Gallery.english-utf8.php (7682 bytes)
galleryinstall.php (2862 bytes)
gallery/placeholder.txt (33 bytes)
package-info.xml (2291 bytes)
ReadMe.txt (967 bytes)
Gallery.php (54289 bytes)
smfgallery108.xml (5333 bytes)
Gallery.english.php (7682 bytes)
 


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Gallery.Template.php
« Reply #3 on: February 12, 2007, 08:27:52 pm »
Updated the zip file should now contain it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline jasonb

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Gallery.Template.php
« Reply #4 on: February 12, 2007, 08:29:47 pm »
BAM!  ;D

It's there. Let's see how this puppy works now.

Thanks.

You may want to update the download link at the SMF site now too. That is where I downloaded the first time.

-Jason

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Gallery.Template.php
« Reply #5 on: February 12, 2007, 08:44:31 pm »
Done
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline jasonb

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Gallery.Template.php
« Reply #6 on: February 12, 2007, 08:49:24 pm »
Works great.

Thanks

I'll post a link when I get everything set up.

Offline commander_data

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Gallery.Template.php
« Reply #7 on: April 21, 2007, 10:58:20 am »
I have the same problem. Here's what's happening:

1. Was getting the 'Unable to load the 'main' template.' message. Unzipped the files in the gallery.zip file to the Themes/default folder. Still the same.

2. Checked the contents of the Gallery.template.php file, it was blank!

3. re-downloaded the zip file and reinstalled, unzipping again to the Themes/default folder. The files look ok this time, but I'm still getting the same error.

Could it be that there is a path error? how do I check this? do I need to specify the path for the gallery mod?
« Last Edit: April 21, 2007, 11:17:33 am by commander_data »

Offline commander_data

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Gallery.Template.php
« Reply #8 on: April 21, 2007, 11:33:32 am »
I've fixed it. I had to put Gallery.php in the Sources folder. There was already a Gallery.php file there, but it was 0 bytes, and had permissions that prevented it from being overwritten when I tried to reinstall. The 0 bytes file really should be corrected on the download on the SMF site!!!!!

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
7722 Views
Last post June 24, 2007, 02:09:53 pm
by wkheathjr
2 Replies
5999 Views
Last post February 18, 2008, 11:41:37 pm
by thekid
1 Replies
4419 Views
Last post October 12, 2008, 07:24:01 pm
by SMFHacks
1 Replies
3787 Views
Last post July 21, 2009, 12:14:39 pm
by SMFHacks
11 Replies
6178 Views
Last post June 14, 2011, 12:29:44 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal