Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Errors log

04 Jul 2016, 10:04

Hello Karl, I've found many of these in my error log. Do I've to worry?
Code
[04-Jul-2016 07:14:06 Europe/Berlin] PHP Fatal error:  Uncaught Exception: './templates/page.png' template not found. in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php:7
Stack trace:
#0 /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php(14): TemplateParser::find_template('./templates/pag...')
#1 /home/xxx/xxx/gallery/app/asset-types/page.inc.php(61): TemplateParser::parse(Array, './templates/pag...')
#2 /home/xxx/xxx/gallery/app/cache.inc.php(199): Page->parse_template()
#3 /home/xxx/xxx/gallery/app/stacey.inc.php(103): Cache->create('custom/404', './content/custo...', true)
#4 /home/xxx/xxx/gallery/app/stacey.inc.php(209): Stacey->render('./content/custo...', './templates/pag...')
#5 /home/xxx/xxx/gallery/app/stacey.inc.php(368): Stacey->create_page('./content/custo...')
#6 /home/xxx/xxx/gallery/app/stacey.inc.php(343): Stacey->not_found()
#7 /home/xxx/xxx/gallery/index.php(28): Stacey->__construct(Array)
#8 {main}
  thrown in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php on line 7
[04-Jul-2016 07:14:06 Europe/Berlin] PHP Fatal error:  Uncaught Exception: './templates/page.png' template not found. in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php:7
Stack trace:
#0 /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php(14): TemplateParser::find_template('./templates/pag...')
#1 /home/xxx/xxx/gallery/app/asset-types/page.inc.php(61): TemplateParser::parse(Array, './templates/pag...')
#2 /home/xxx/xxx/gallery/app/cache.inc.php(199): Page->parse_template()
#3 /home/xxx/xxx/gallery/app/stacey.inc.php(103): Cache->create('custom/404', './content/custo...', true)
#4 /home/xxx/xxx/gallery/app/stacey.inc.php(209): Stacey->render('./content/custo...', './templates/pag...')
#5 /home/xxx/xxx/gallery/app/stacey.inc.php(368): Stacey->create_page('./content/custo...')
#6 /home/xxx/xxx/gallery/app/stacey.inc.php(343): Stacey->not_found()
#7 /home/xxx/xxx/gallery/index.php(28): Stacey->__construct(Array)
#8 {main}
  thrown in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php on line 7
[04-Jul-2016 07:14:06 Europe/Berlin] PHP Fatal error:  Uncaught Exception: './templates/page.png' template not found. in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php:7
Stack trace:
#0 /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php(14): TemplateParser::find_template('./templates/pag...')
#1 /home/xxx/xxx/gallery/app/asset-types/page.inc.php(61): TemplateParser::parse(Array, './templates/pag...')
#2 /home/xxx/xxx/gallery/app/cache.inc.php(199): Page->parse_template()
#3 /home/xxx/xxx/gallery/app/stacey.inc.php(103): Cache->create('custom/404', './content/custo...', true)
#4 /home/xxx/xxx/gallery/app/stacey.inc.php(209): Stacey->render('./content/custo...', './templates/pag...')
#5 /home/xxx/xxx/gallery/app/stacey.inc.php(368): Stacey->create_page('./content/custo...')
#6 /home/xxx/xxx/gallery/app/stacey.inc.php(343): Stacey->not_found()
#7 /home/xxx/xxx/gallery/index.php(28): Stacey->__construct(Array)
#8 {main}
  thrown in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php on line 7
[04-Jul-2016 15:31:48 Europe/Berlin] PHP Fatal error:  Uncaught Exception: './templates/page.ico' template not found. in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php:7
Stack trace:
#0 /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php(14): TemplateParser::find_template('./templates/pag...')
#1 /home/xxx/xxx/gallery/app/asset-types/page.inc.php(61): TemplateParser::parse(Array, './templates/pag...')
#2 /home/xxx/xxx/gallery/app/cache.inc.php(199): Page->parse_template()
#3 /home/xxx/xxx/gallery/app/stacey.inc.php(103): Cache->create('custom/404', './content/custo...', true)
#4 /home/xxx/xxx/gallery/app/stacey.inc.php(209): Stacey->render('./content/custo...', './templates/pag...')
#5 /home/xxx/xxx/gallery/app/stacey.inc.php(368): Stacey->create_page('./content/custo...')
#6 /home/xxx/xxx/gallery/app/stacey.inc.php(343): Stacey->not_found()
#7 /home/xxx/xxx/gallery/index.php(28): Stacey->__construct(Array)
#8 {main}
  thrown in /home/xxx/xxx/gallery/app/parsers/template-parser.inc.php on line 7
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Errors log

04 Jul 2016, 20:39

No it's nothing to worry about. It's the same error repeated, and it's related to PNG images and their "landing page". What X3 version are you using? May I see a link to a page where you have uploaded PNG images?
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: Errors log

05 Jul 2016, 10:59

This is quite curious since I'm not using any png image in my galleries but for the logo. I'm using latest version. Any clue of where the png images could be?

I read

PHP Fatal error: Uncaught Exception: './templates/page.png' template not found.

but the templates folder is not in my public galleries...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Errors log

06 Jul 2016, 02:19

andreamarucci wrote:PHP Fatal error: Uncaught Exception: './templates/page.png' template not found.
This is part of how X3 is built ... when a full html page is requested, it is created from /templates/page.html .... If is a JSON page is requested (ajax), output is created from /templates/page.json. The only reason it might request a template page.PNG, could be if a direct browser request is made to an image that does not exist, where the request would then be routed through the X3 engine, where it tries to locate a landing-page template that does not (and should not) exist ...

There is a similar method used for image landing pages, where it would look for file.html. I am not 100% sure where your request comes from, but it would only be possible by some request to a PNG file. Sounds like it could be something you may have had earlier, indexed by a search robot, and perhaps deleted?

In either case, this is not anything to worry about, as it is not affecting your website. This request would only occur based on a request that is outside the core X3 website. It could be landing page for PNG file somehow, perhaps logo, although I am not sure how any search engine has picked up any link to this. This error is created from a request that should not exist, or indirectly to a file that does not exist.

If you want to diagnose further, I would recommend this: Delete the error log content, and then re-visit your website after clearing the cache, and then browsing through lots of pages and images. The error should not re-occur from browsing the website ... The error should only re-occur based on some abstract direct request that it not part of the main X3 website ... but could be part of the landing-page logic.