Previous Thread
Next Thread
Print Thread
Hop To
Fatal error using the new version 7.6 #259622 02/28/2017 9:58 PM
Joined: Jun 2006
Posts: 197
ehm1 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jun 2006
Posts: 197
I had the version 7.6 installed and I'm getting couple 'fatal error':

1) Under Master Settings-->Feature Settings-->Attachments--> Test Directory, I get this error:
Fatal error: Call to undefined function smartyPrepare() in /home/imigcom/public_html/forum/libs/html.inc.php on line 692

Same error here:
2) Under Tools & Information -->Database tools -->Backup Tables --> Test Directory, I get this error:
Fatal error: Call to undefined function smartyPrepare() in /home/imigcom/public_html/forum/libs/html.inc.php on line 692

same error here:
3) Under Membership -->Profile Settings-->Avatars--> Test Directory, I get this error:
Fatal error: Call to undefined function smartyPrepare() in /home/imigcom/public_html/forum/libs/html.inc.php on line 692


Looks like every call to html.inc.php end up on this error. The line 692 is:
smartyPrepare($data);

Any help?

Re: Fatal error using the new version 7.6 [Re: ehm1] #259626 02/28/2017 11:47 PM
Joined: Apr 2004
Posts: 1,530
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
Can I ask that you;

1) Clear your Template Cache directory (/templates/compile) by manually removing all the files within that directory. All except "index.html"
Dont worry, the files will automatically be rebuilt.

2) Check the permissions of that directory. IIRC, it should be 755.

In addition, it looks like the tests for being able to write to those tested directories are failing.
What does your "Control Panel » Permission Checks" page tell you?


After making the changes, attempt to do the same procedures you've listed in your post again. The errors you're getting are server specific.

smartyPrepare($data); is the code which preps the entire page, before handing off to the Smarty template engine.


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Fatal error using the new version 7.6 [Re: ehm1] #259628 02/28/2017 11:54 PM
Joined: Jun 2006
Posts: 15,844
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,844
The /templates/compile folder should be 777 IMO


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Fatal error using the new version 7.6 [Re: ehm1] #259635 03/01/2017 12:31 AM
Joined: Apr 2004
Posts: 1,530
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
Originally Posted by Gizmo
The /templates/compile folder should be 777 IMO


đź‘Ť

Re: Fatal error using the new version 7.6 [Re: ehm1] #259639 03/01/2017 6:12 PM
Joined: Jun 2006
Posts: 197
ehm1 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jun 2006
Posts: 197
Follow instructions by Id242 and Gizmo:

Delete all files under /templates/compile but index

Check permissions on folders, both /templates and /templates/compile are 777

went to Tools & Information-->Permission Checks and got green "OK" on all lines

Test again all 3 directories and got the same issue, all responded with browser error:
Fatal error: Call to undefined function smartyPrepare() in /home/imigcom/public_html/forum/libs/html.inc.php on line 692


Let me know what else can I do to test it.
Tks.

Re: Fatal error using the new version 7.6 [Re: ehm1] #259640 03/01/2017 6:23 PM
Joined: Feb 2007
Posts: 1,272
JAISP Offline
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,272
The folders that you are getting the failed or errors on, what are the file permissions on those folders?

What are the locations as entered in those settings boxes for those folders you're getting the failed and errors on?

Re: Fatal error using the new version 7.6 [Re: ehm1] #259641 03/01/2017 6:26 PM
Joined: Jun 2006
Posts: 15,844
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,844
Ehm, could you install the UBB.threads System Requirements Test and provide us with any information returned?

Could you try disabling the zlib compression option in the control panel as a test?
Dashboard -> Master Settings -> Primary Settings -> Advanced Settings (at the bottom) -> Enable Zlib Data Compression


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Fatal error using the new version 7.6 [Re: ehm1] #259642 03/01/2017 7:02 PM
Joined: Jun 2006
Posts: 197
ehm1 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jun 2006
Posts: 197
OK. in parts on Jasper and Gizmo:

The folders permissions:

1) Under Master Settings-->Feature Settings-->Attachments--> Test Directory,
/home/imigcom/public_html/forum/attach = 777

2) Under Tools & Information -->Database tools -->Backup Tables --> Test Directory,
/home/imigcom/public_html/forum/admin/backup/ = 744

3) Under Membership -->Profile Settings-->Avatars--> Test Directory, I get this error:
/home/imigcom/public_html/forum/images/avatarsM = 755


the zlib compression was already disabled. I'm using shared server from Hostgator, and they do not permit compression allowed on that.

Below is the UBB.Threads system requirements test. Seams normal to me:
System Requirements Met
Your system meets all of UBB.threads v7.6.0+'s PHP requirements.

Possible Problems
Possible problems have been detected, please see the individual messages below for more information.

The reported PHP 'max_input_vars' setting is currently set at or below the default setting (Current: 1000, Default: 1000), which could have issues if you have more than 33 forums; for more information, please see the UBBWiki entry "Issues with the PHP 'max_input_vars' Setting". Please see UBBWiki: maxinput
The 'max_execution_time' value (Default: 30) determines how long PHP can wait for a script to fully execute; we recommend a value of at least '60'. Please see UBBWiki: maxexecution


Additional Information
File Get Contents: Allows External URLs
GZip: GZip is supported on this system.
Maximum Execution Time: 30 Seconds
Maximum UBB.threads Version: v7.6.x (UBBWiki: "Server Requirements and Suggestions")
Maximum Upload File Size: 64M (see php.net for more information)
Memory Limit: 256M
MySQL: MySQL v5.0 or newer is required; please manually check that you meet this requirement.
PHP Interface: cgi-fcgi
PHP Version: v5.6.29
Reported Host: imigrar.com
Reported IP: 192.185.121.75
Reported OS: Linux
Reported Path: /home/imigcom/public_html
Reported Port: 80
Post Max File Size: 64M (can affect the upload size, see php.net for more information)
Time: The current, unadjusted, server time is: Wednesday, March 1st, 2017 at 04:57 PM, America/Chicago (-06:00)
ZLib: ZLib is supported on this system.

Re: Fatal error using the new version 7.6 [Re: ehm1] #259644 03/01/2017 7:36 PM
Joined: Jun 2006
Posts: 15,844
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,844
Ensure that these are set:
/templates 777
/templates/default 777
/templates/compile 777

I believe that this error is related to Smarty being unable to manage its compile directory:
Code
Fatal error: Call to undefined function smartyPrepare() in /home/imigcom/public_html/forum/libs/html.inc.php on line 692


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Fatal error using the new version 7.6 [Re: Gizmo] #259645 03/01/2017 7:46 PM
Joined: Jun 2006
Posts: 197
ehm1 Offline OP
enthusiast
OP Offline
enthusiast
Joined: Jun 2006
Posts: 197
Gizmo,
I checked (and update /templates/compile) to 777.
Same error still

Tks by being interested in help.

Re: Fatal error using the new version 7.6 [Re: ehm1] #259646 03/01/2017 8:01 PM
Joined: Jun 2006
Posts: 15,844
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,844
Could you copy the chunk surrounding these errors from your error log? The lines preceding/after may point towards additional information, at least something to hint...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 1:11 AM
Unable to save General settings
by amciotola - 10/13/2019 4:23 AM
I see signature line images, but no avatars
by Morgan - 10/12/2019 2:21 PM
Show PDF
by Geoff - 10/09/2019 1:33 AM
Subscription’s Auto Return URL for PayPal
by Geoff - 09/27/2019 12:10 AM
Who's Online Now
1 registered members (Ruben), 76 guests, and 163 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20190930)