formtools / core

The Form Tools Core.
https://formtools.org
205 stars 78 forks source link

Unable to open my form #863

Open vkarafot opened 1 year ago

vkarafot commented 1 year ago

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

thefm72 commented 1 year ago

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

alpaca-farm commented 9 months ago

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"]);