|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Jul 05, 2013 3:56 am Post subject: 500 Server Error |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Jul 05, 2013 4:18 am Post subject: |
|
|
Did you deleted existing compiled and cached templte files after the update (which you should) |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Jul 05, 2013 4:56 am Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Jul 05, 2013 5:10 am Post subject: |
|
|
Could be also a conflict with another autoloader |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Jul 05, 2013 5:02 pm Post subject: |
|
|
I won't ask you to explain that, but simply say that I doubt such a thing is happening. |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Sat Jul 06, 2013 9:21 pm Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Jul 07, 2013 9:53 am Post subject: |
|
|
Does the demo application which comes with the distribution run? |
|
Back to top |
|
|
|
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
|