UBBCentral
Posted By: ehm1 Fatal error using the new version 7.6 - 03/01/2017 1:58 AM
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?
Posted By: isaac Re: Fatal error using the new version 7.6 - 03/01/2017 3:47 AM
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.
Posted By: Gizmo Re: Fatal error using the new version 7.6 - 03/01/2017 3:54 AM
The /templates/compile folder should be 777 IMO
Posted By: isaac Re: Fatal error using the new version 7.6 - 03/01/2017 4:31 AM
Originally Posted by Gizmo
The /templates/compile folder should be 777 IMO


๐Ÿ‘
Posted By: ehm1 Re: Fatal error using the new version 7.6 - 03/01/2017 10:12 PM
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.
Posted By: JAISP Re: Fatal error using the new version 7.6 - 03/01/2017 10:23 PM
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?
Posted By: Gizmo Re: Fatal error using the new version 7.6 - 03/01/2017 10:26 PM
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
Posted By: ehm1 Re: Fatal error using the new version 7.6 - 03/01/2017 11:02 PM
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 UBB.Wiki entry "Issues with the PHP 'max_input_vars' Setting". Please see UBB.Wiki: 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 UBB.Wiki: 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 (UBB.Wiki: "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.
Posted By: Gizmo Re: Fatal error using the new version 7.6 - 03/01/2017 11:36 PM
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
Posted By: ehm1 Re: Fatal error using the new version 7.6 - 03/01/2017 11:46 PM
Gizmo,
I checked (and update /templates/compile) to 777.
Same error still

Tks by being interested in help.
Posted By: Gizmo Re: Fatal error using the new version 7.6 - 03/02/2017 12:01 AM
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...
© 2019 UBB.threads PHP Forum Software Community