core icon indicating copy to clipboard operation
core copied to clipboard

Unable to open my form

Open vkarafot opened this issue 3 years ago • 2 comments

Hi,

My form is published and online but i cannot see it (HTTP ERROR 500 in the browser)

Can someone help me with that?

Regards, Akis

vkarafot avatar Sep 26 '22 15:09 vkarafot

Hi,

My form is published and online but i cannot see it (HTTP ERROR 500 in the browser)

Can someone help me with that?

Regards, Akis

mine too, same problems

thefm72 avatar Oct 05 '22 15:10 thefm72

If you are running PHP 8+, this might be caused by a pre-existing TypeError that now throws a Fatal error (it let you off with a warning in previous versions) in one of the smarty plugin pages.

You can fix the bug by type casting the page number string to an int by adding "(int)" to line 112 of this file:

.../formtools/modules/form_builder/smarty_plugins/function.page.php

$smarty->assign("page_name", $template_vars["nav_pages"][(int)$current_page - 1]["page_name"]);

alpaca-farm avatar Sep 20 '23 18:09 alpaca-farm