2.5.0: No new StaticPages can be created [SOLVED]
Re: 2.5.0: No new StaticPages can be created
Sure, tried it with both Opera and Firefox, browser cache emptied before testing. Same result.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Re: 2.5.0: No new StaticPages can be created
I missed your edit:
Edit: Oh, and be careful that you replace the right file :) I replaced the one under templates/clean_blog/, but you might have made a copy of the theme, like the templateeditor-plugin creates automatically to preserve local changes?
The file is indeed still with the old code and will fail. I don't know why there is nothing in the log though, and the maintenance task should have nuked it. You can delete it manually, everything under templates_c/ maybe.Huhu wrote: Wed Jul 23, 2025 8:24 amThe f7 file is included here, but hasn't changed since 9th of July..
Edit: Oh, and be careful that you replace the right file :) I replaced the one under templates/clean_blog/, but you might have made a copy of the theme, like the templateeditor-plugin creates automatically to preserve local changes?
Re: 2.5.0: No new StaticPages can be created
Thanks! I replaced it under templates/clean-blog/backend_templates/default_staticpage_backend.tpl , but should it end up in templates/clean-blog/default_staticpage_backend.tpl instead, did I get that right?
I'll delete those files later and get back in touch.
I'll delete those files later and get back in touch.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Re: 2.5.0: No new StaticPages can be created
Mornin',
I deleted the filetree under templates_c, retried, but it doesn't make a difference. Also, there is no f6 or staticpage file created after I tried to create a new Static Page as an admin.
BUT now I got output in the error log which looks helpful, at least
I deleted the filetree under templates_c, retried, but it doesn't make a difference. Also, there is no f6 or staticpage file created after I tried to create a new Static Page as an admin.
BUT now I got output in the error log which looks helpful, at least
Code: Select all
[proxy_fcgi:error] [pid 3...7088] [client...]
AH01071: Got error 'PHP message: PHP Fatal error:
Uncaught --> Smarty Compiler:
Syntax error in template
"file:/.../templates/clean-blog/backend_templates/default_staticpage_backend.tpl"
on line 59 "<textarea data-configitem="staticpage_header_image" name="serendipity[plugin][custom][staticpage_header_image]" class="change_preview" id="propstaticpage_header_image">
{if $form_values.custom|is_array}
{$form_values.custom.staticpage_header_image}{/if}
</textarea>"
modifier 'is_array' not allowed by security setting
<-- \n thrown in /...templates/clean-blog/backend_templates/default_staticpage_backend.tpl
on line 59', referer:
https://kunz-artenschutz.de/serendipity_admin.php?serendipity[adminModule]=event_display&serendipity[adminAction]=staticpages
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Re: 2.5.0: No new StaticPages can be created
Ah, ok. I'm testing under 2.6-alpha with a new Smarty release and that one changed quite a bit, maybe also how those security settings worked. Or maybe they were extended back then? I'll have a look.
Re: 2.5.0: No new StaticPages can be created
Thanks a lot! Looking forward.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Re: 2.5.0: No new StaticPages can be created
I'd try an individual fix first. In include/serendipity_smarty_class.inc.php there is line 20:
Please change it to:
So we add is_array to the list. Does the staticpage backend work now?
Sorry for not testing that for you, my dev blog has some changes right now I don't want to risk. If the fix works for you I'd say we can accept if it is fixed for all only in the 2.6.0.beta1 I want to release soon.
Code: Select all
public $php_modifiers = array('escape', 'rand', 'str_repeat', 'nl2br');Code: Select all
public $php_modifiers = array('escape', 'rand', 'str_repeat', 'nl2br', 'is_array');Sorry for not testing that for you, my dev blog has some changes right now I don't want to risk. If the fix works for you I'd say we can accept if it is fixed for all only in the 2.6.0.beta1 I want to release soon.
Re: 2.5.0: No new StaticPages can be created
Hi!
Excellent!! The fix works, you found it. Thank you so much, testing was a pleasure. Now the Simple Templare works as expected.
Wonderful!
Excellent!! The fix works, you found it. Thank you so much, testing was a pleasure. Now the Simple Templare works as expected.
Wonderful!
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport
Re: 2.5.0: No new StaticPages can be created [SOLVED]
That's great to hear. Thank you as well for being this active in the fixing process. I'll now merge the PR :)
Re: 2.5.0: No new StaticPages can be created [SOLVED]
Very good, thank you for providing such a quick support!
One other point for the next version might be the Static Page as Frontpage issue (as described here), which hasn't been solved by this patch, sorry to say. But most important was fixing the editor.
One other point for the next version might be the Static Page as Frontpage issue (as described here), which hasn't been solved by this patch, sorry to say. But most important was fixing the editor.
Post-apocalyptic Jugger sports: What is Jugger? Video I Free ebook on the sport