Smarty warning.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm

Smarty warning.

Post by nervino »

Hi All,
I'm getting errors that I'm not able to debug.

When I navigate the site everything works fine, but after visiting several pages I got the error:

Code: Select all

Warning: Smarty::include(/home/mhd/www.mysite.com/htdocs/tmp/templates_c/%%52^52E^52E7C88B%%tpl_top%3A22.php) [smarty.include]: failed to open stream: No such file or directory in /home/mhd/www.mysite.com/htdocs/lib/smarty/Smarty.class.php on line 1263

Warning: Smarty::include() [function.include]: Failed opening '/home/mhd/www.mysite.com/htdocs/tmp/templates_c/%%52^52E^52E7C88B%%tpl_top%3A22.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/mhd/www.mysite.com/htdocs/lib/smarty/Smarty.class.php on line 1263

Warning: Smarty::include(/home/mhd/www.mysite.com/htdocs/tmp/templates_c/%%19^194^194941AA%%tpl_head%3A22.php) [smarty.include]: failed to open stream: No such file or directory in /home/mhd/www.mysite.com/htdocs/lib/smarty/Smarty.class.php on line 1263

Warning: Smarty::include() [function.include]: Failed opening '/home/mhd/www.mysite.com/htdocs/tmp/templates_c/%%19^194^194941AA%%tpl_head%3A22.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/mhd/www.mysite.com/htdocs/lib/smarty/Smarty.class.php on line 1263

Warning: Smarty::include(/home/mhd/www.mysite.com/htdocs/tmp/templates_c/%%76^763^76313DB0%%tpl_body%3A22.php) [smarty.include]: failed to open stream: No such file or directory in /home/mhd/www.mysite.com/htdocs/lib/smarty/Smarty.class.php on line 1263

Warning: Smarty::include() [function.include]: Failed opening '/home/mhd/www.mysite.com/htdocs/tmp/templates_c/%%76^763^76313DB0%%tpl_body%3A22.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/mhd/www.mysite.com/htdocs/lib/smarty/Smarty.class.php on line 1263
If I manually delete all the /tmp/templates_c/ content, the pages are shown correctly without errors, but the error is repeated after a certain number of pages visited.

The same error is shown in admin panel using the italian language and only in some areas of the panel, not in others. Switching to english language, everything works fine in admin. If I return to italian, the error messages are gone...


The /modules and /tmp (and its subdirs) dirs are chmod 755.

What can I do to solve the issue?

Thank you



----------------------------------------------

Cms Version: 1.10.2

Installed Modules:

CMSMailer: 2.0.2
FileManager: 1.2.0
MenuManager: 1.7.7
ModuleManager: 1.5.3
CGBlog: 1.8.1
Printing: 1.1.2
Search: 1.7
ThemeManager: 1.1.4
TinyMCE: 2.9.4
CMSPrinting: 1.0
MicroTiny: 1.1.1
FormBuilder: 0.7.1
CGSimpleSmarty: 1.4.10
CGExtensions: 1.27.2


Config Information:

php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 32000000
default_upload_permission: 664
url_rewriting:
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: it_IT.UTF-8
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.2.6-1+lenny2
md5_function: On (Vero)
gd_version: 2
tempnam_function: On (Vero)
magic_quotes_runtime: Off (Falso)
E_STRICT: 0
memory_limit: 128M
max_execution_time: 300
output_buffering: On
safe_mode: Off (Falso)
file_uploads: On (Vero)
post_max_size: 24M
upload_max_filesize: 24M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (Vero)
xml_function: On (Vero)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.0.24a


----------------------------------------------
Last edited by nervino on Fri Feb 10, 2012 1:39 pm, edited 2 times in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Smarty warning.

Post by calguy1000 »

Check to make sure your not out of disk space.

Smarty is trying to access a file it was supposed to have created. If that file doesn't exist AND your permissions are OK then it may be a disk space issue.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm

Re: Smarty warning.

Post by nervino »

Thank you Calguy, you are right!
I tried to upload via FTP an archive.zip of about 16Mb to /templates_c/ folder and Ive got a "Disk quota exceeded" error.
I'm going to ask to my hosting provider what happened to my 3800MB of space left...
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am

Re: [SOLVED] Smarty warning.

Post by gocreative »

I have this exact same issue, but I'm definitely not out of disk space as this is a new website consisting of only three basic pages. I've intermittently had the issue on other websites as well.

I'm running CMSMS v1.10.3 in both of the most recent cases, and receiving the following error periodically:

Code: Select all

Warning: include(/home/1-web/1a/a2/xxxx.com/public/www/tmp/templates_c/%%25^25E^25E0F81D%%tpl_top%3A23.php) [function.include]: failed to open stream: No such file or directory in /home/1-web/1a/a2/xxxx.com/public/www/lib/smarty/Smarty.class.php on line 1263

Warning: include() [function.include]: Failed opening '/home/1-web/1a/a2/xxxx.com/public/www/tmp/templates_c/%%25^25E^25E0F81D%%tpl_top%3A23.php' for inclusion (include_path='.:/usr/local/lib/php/__applications/:/home/chroot_bind/php/php5/usr/local/lib/php/') in /home/1-web/1a/a2/xxxx.com/public/www/lib/smarty/Smarty.class.php on line 1263
I have only installed the following modules (all latest versions):

* FormBuilder
* FormBrowser
* AdvancedContent

Are there are any other potential reasons for this?
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm

Re: [SOLVED] Smarty warning.

Post by nervino »

Are the permissions on tmp folder right? Try to chmod to 777 www/tmp folder and its subfolders
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am

Re: [SOLVED] Smarty warning.

Post by gocreative »

Yes, folder permissions are 777.
nervino
Power Poster
Power Poster
Posts: 448
Joined: Sun Dec 28, 2008 12:15 pm

Re: Smarty warning.

Post by nervino »

I removed [SOLVED] from post's title, hoping that someone more skilled than me will help you.
Post Reply

Return to “CMSMS Core”