Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
500 Server Error

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
bsmither
Smarty Rookie


Joined: 20 Dec 2011
Posts: 33
Location: Rocky Mountains

PostPosted: Fri Jul 05, 2013 3:56 am    Post subject: 500 Server Error Reply with quote

System 1: localhost
Windows XP SP3
Abyss Web Server X1 v2.8
PHP 5.4.14

System 2: domain.com
Windows Server 2003
Apache 2.2
PHP 5.3.5

Application using Smarty 3.1.14 (also tried Smarty 3.1.13).

System 1 crashes with 500 ISE, but system 2 does not. No error messages anywhere - nothing logged. (Verbose logging on Abyss does not reveal anything.)

Tracing to the point where things all stop is:
Line 154 of smarty_internal_templatebase.php

Line 154 is:
if (!$_template->compiled->exists || ($_template->smarty->force_compile && !$_template->compiled->isCompiled)) {

Using this in front of line 154:
echo "Help";print_r($_template->compiled->exists);die("Made it this far 5.");
returns only:
Help

(An earlier version of this application which uses Smarty 3.1.8 works on system1. If needed, I can verify that - just to see if something changed.)

I'm asking for help on determining what might be causing this, $_template->compiled->exists, to crash.[/b]
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4672
Location: Hamburg / Germany

PostPosted: Fri Jul 05, 2013 4:18 am    Post subject: Reply with quote

Did you deleted existing compiled and cached templte files after the update (which you should)
Back to top
View user's profile Send private message
bsmither
Smarty Rookie


Joined: 20 Dec 2011
Posts: 33
Location: Rocky Mountains

PostPosted: Fri Jul 05, 2013 4:56 am    Post subject: Reply with quote

This is a fresh install of the application. There are no files in the cache folder to delete. (The same folder is used for ->cache_dir, ->config_dir, and ->compile_dir declarations.)

(The ->testInstall passed.)
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4672
Location: Hamburg / Germany

PostPosted: Fri Jul 05, 2013 5:10 am    Post subject: Reply with quote

Could be also a conflict with another autoloader
Back to top
View user's profile Send private message
bsmither
Smarty Rookie


Joined: 20 Dec 2011
Posts: 33
Location: Rocky Mountains

PostPosted: Fri Jul 05, 2013 5:02 pm    Post subject: Reply with quote

I won't ask you to explain that, but simply say that I doubt such a thing is happening.
Back to top
View user's profile Send private message
bsmither
Smarty Rookie


Joined: 20 Dec 2011
Posts: 33
Location: Rocky Mountains

PostPosted: Sat Jul 06, 2013 9:21 pm    Post subject: Reply with quote

Doing some more tracing, I get to line 44 of smarty_internal_templatebase.php, where:

method_exists($this->smarty,'createTemplate') returns true

but line 47:

: $this->smarty->createTemplate($template, $cache_id, $compile_id, $parent, false);

does not happen. I rewrote the ternary operator to a standard if/else so I could put a tracer on the above statement. I also put a tracer just inside createTemplate. The trace says I get to the statement, but I don't get inside the method.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4672
Location: Hamburg / Germany

PostPosted: Sun Jul 07, 2013 9:53 am    Post subject: Reply with quote

Does the demo application which comes with the distribution run?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP