Hello, everyone,
when trying to activate the plugin tag under FlatPress 1.3dev [master], I get the following error message:
This page does not work frank-web.dedyn.io is currently unable to process this request.
HTTP ERROR 500
Strangely, there is no error found in the log files (syslog and apache error.log).
Apache/2.4.54
PHP 7.4.30 FPM/FastCGI
Maybe someone would like to take a look and confirm that the error exists. Maybe also with abnormalities in the log files.
Under Smarty 2.6 the plugin works perfectly.
It would be a shame if this plugin didn't work with Smarty 4.
Best Regards
Frank
Tag-Plugin - Error 500 - Smarty 4
- fraenkiman
- Posts: 221
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Tag-Plugin - Error 500 - Smarty 4
You are strong in PHP and Java Script? Then help us to improve FlatPress.
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
Re: Tag-Plugin - Error 500 - Smarty 4
Hi,
thanks for reporting. This will happen with a few more plugins, I'm afraid: With the update to Smarty 4, the name conventions of Smarty functions have changed (assignByRef() instead of assign_by_ref(), for example), and the register_...() functions have been combined to registerPlugin($type, ...).
It's actually not too hard to fix: Just check for Smarty function calls within the plugin code (search for), and change them. (Still waiting for the official Smarty 3 to 4 upgrade guide, though...)
I did the fix for the Tag plugin, see my fork here: https://github.com/azett/flatpress_tag_plugin
And I sent Evaggelos a pull request to merge my changes back into his repo: https://github.com/ebal/flatpress_tag_plugin/pull/3
All the best,
Arvid
thanks for reporting. This will happen with a few more plugins, I'm afraid: With the update to Smarty 4, the name conventions of Smarty functions have changed (assignByRef() instead of assign_by_ref(), for example), and the register_...() functions have been combined to registerPlugin($type, ...).
It's actually not too hard to fix: Just check for Smarty function calls within the plugin code (search for
Code: Select all
$smarty->
I did the fix for the Tag plugin, see my fork here: https://github.com/azett/flatpress_tag_plugin
And I sent Evaggelos a pull request to merge my changes back into his repo: https://github.com/ebal/flatpress_tag_plugin/pull/3
All the best,
Arvid
- fraenkiman
- Posts: 221
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Tag-Plugin - Error 500 - Smarty 4
Hello Arvid,
Thank you for creating the fork with the fixes. Tested with fp-1.3dev [master] (smarty 4) without any abnormalities. Works as expected .
Best Regards
Frank
Thank you for creating the fork with the fixes. Tested with fp-1.3dev [master] (smarty 4) without any abnormalities. Works as expected .
Best Regards
Frank
You are strong in PHP and Java Script? Then help us to improve FlatPress.
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
- fraenkiman
- Posts: 221
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Tag-Plugin v2.6.3 for FlatPress 1.3 "Andante" Beta1
Hello everyone,
I have fixed a fatal error in the tag plugin, which occurred when you wanted to save an entry as a draft with a set tag.
The plugin is available for download from the wiki, among other places.
Best regards
Frank
I have fixed a fatal error in the tag plugin, which occurred when you wanted to save an entry as a draft with a set tag.
The plugin is available for download from the wiki, among other places.
Best regards
Frank
You are strong in PHP and Java Script? Then help us to improve FlatPress.
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
Looking for ideas, templates, examples and answers to frequently asked questions?
You'll find it here.
My FlatPress-Blog: https://frank-web.dedyn.io
Who is online
Users browsing this forum: No registered users and 13 guests