Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
InoculateIT
Experienced
Topic Author
Posts: 85
Joined: 08 Jun 2010, 15:04

Template missing?

06 Jun 2016, 03:32

Hi

After upgrade, I can't load the site anymore, keeps telling me: './templates/page.php' template not found. x3 17

I tried make a clean install, and still get the errors :( .18.1

Any solution?

Best regards
The spelling mistakes has been inserted automatically of consideration to the people who find a great pleasure to search for it...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Template missing?

06 Jun 2016, 03:58

Sorry, but it seems there are missing files after update, or something didn't get updated. If you have a link, I could take a look, but this sounds like it might require me to login via FTP to check the application structure. In which case, I need login details.
 
User avatar
InoculateIT
Experienced
Topic Author
Posts: 85
Joined: 08 Jun 2010, 15:04

Re: Template missing?

07 Jun 2016, 08:34

I have find a solution myself :)

The problem was both zipped package x3 and x3_nocontent page.php was missing, it was only page. html, so I renamed html to php, and now its running!

No idea if its make any trouble?

Another question?
How can I make my own language and set it to default?
The spelling mistakes has been inserted automatically of consideration to the people who find a great pleasure to search for it...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Template missing?

07 Jun 2016, 08:43

InoculateIT wrote:The problem was both zipped package x3 and x3_nocontent page.php was missing, it was only page. html, so I renamed html to php, and now its running!
There is no page.php file in X3, and was never supposed to be one. The only reason it works by renaming the file, is because the /templates/ folder is not in fact used, because templates are pre-rendered ... Surely a strange issue, but its either something missing, or server-related ... I can only diagnose with access and login.
InoculateIT wrote:No idea if its make any trouble?
I doubt it will cause any problems, although I can't guarantee it. You will likely find out. The big question to me is really why it's asking for a "page.php" file, which is not a file used in X3 anywhere.
InoculateIT wrote:Another question?
How can I make my own language and set it to default?
Your own language for what? The frontend? There are only a few words like "comments" and "images" ... There will be language options for this in the future.

If you want to translate the admin panel, hopefully in the future, but it is a massive task. Here is one of the files that needs to be translated:
https://demo.photo.gallery/panel/settings-schema.json
 
User avatar
InoculateIT
Experienced
Topic Author
Posts: 85
Joined: 08 Jun 2010, 15:04

Re: Template missing?

07 Jun 2016, 08:57

Hi Karl :)

I have send you a pm with login details :)

Its only the frontend language I want to me danish :)
The spelling mistakes has been inserted automatically of consideration to the people who find a great pleasure to search for it...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Template missing?

07 Jun 2016, 13:38

Looking into this right now, it has a pretty simple explanation ... You are using "index.php", which tells X3 that you are trying to request a template with extension "PHP". It works fine for pages where you do not request "index.php":
http://fotoskuret.dk/galleries/

I am not sure why and where you are setting up the redirect, but you can't use "index.php" to load the index page ... It might have worked earlier, but it was an unnecessary task to search subfolders for files before rendering pages. This issue only occurs because you have a redirect exclusively for the specific home page URL ... It's obviously just a temporary workaround from your side (??), so until you remove the redirect, you will need to start browsing from a sub-page like this: http://fotoskuret.dk/galleries/ ... The home page even works from there, because technically it is loading this page: http://fotoskuret.dk/index.json
 
User avatar
InoculateIT
Experienced
Topic Author
Posts: 85
Joined: 08 Jun 2010, 15:04

Re: Template missing?

08 Jun 2016, 02:07

Hi Karl

Thanks for the answer :)

It make sence, but the reason im using redirect is becuase, my old x2 site is still active and I want the new site on a new domain, so until im done with setup of x3, i would use it.

But I see the problem, so I will install it in a sub folder /galleries :)

Can I move all the files in the /folder to root after im done with setup?
The spelling mistakes has been inserted automatically of consideration to the people who find a great pleasure to search for it...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Template missing?

08 Jun 2016, 05:22

InoculateIT wrote:But I see the problem, so I will install it in a sub folder /galleries :)
Better to use a separate folder, yes.
InoculateIT wrote:Can I move all the files in the /folder to root after im done with setup?
Yes. You will need to access the new panel url, and click "refresh menu" though, after you have moved everything.