Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception) in F:\xampp\htdocs\xoops2511\class\libraries\vendor\smarty\smarty\libs\sysplugins\smartycompilerexception.php on line 8 #1329

Open
Neil-hsu-168 opened this issue Apr 8, 2023 · 3 comments

Comments

@Neil-hsu-168
Copy link

Neil-hsu-168 commented Apr 8, 2023

I downloaded the latest Xoops 2.5.11 update version released on April 6 and encountered the following error when upgrading my local Xoops installation:

Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception) in F:\xampp\htdocs\xoops2511\class\libraries\vendor\smarty\smarty\libs\sysplugins\smartycompilerexception.php on line 8

My local environment is as follows:

XOOPS version: XOOPS 2.5.11
PHP version: 8.1.12
MySQL version: 10.4.27-MariaDB

Could you please advise on what might have caused this error? Thank you!

image

@GregMage
Copy link
Contributor

GregMage commented Apr 8, 2023

Hi,
This is a compatibility problem with smarty 3. There are several possible causes:
Your theme is not up to date (not smarty3 compatible), in this case you have to modify your theme to make it compatible or use for example the xswatch theme.
One or more modules are not yet compatible with smarty3. In this case you have to deactivate the modules and activate them one by one to see which one is the problem.

@GregMage
Copy link
Contributor

GregMage commented Apr 8, 2023

To help you with these changes, you can follow the guidelines on this site:
https://www.monxoops.fr/modules/xmtutorial/tutorial.php?tutorial_id=19&lang=english

@Neil-hsu-168
Copy link
Author

It turned out to be an error caused by smarty 3, I understand the reason, thank you very much for your valuable advice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants