Formbuilder and gallery module bug? Help
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Formbuilder and gallery module bug? Help
Has anyone got the same problem. I cant seem to have the gallery and a form on the same page. The form doesn't work only the submit button shows up. The form works without the gallery. I test this on a on clean CMSMS install.
Can anyone shine a light on this matter.
I am using
cmsms 2.2.14
gallery 2.4.2
FormBuilder 1.0.2
Cheers
Can anyone shine a light on this matter.
I am using
cmsms 2.2.14
gallery 2.4.2
FormBuilder 1.0.2
Cheers
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
I might post this in the worng place. Admin can you move it?
Re: Formbuilder and gallery module bug? Help
I can't recreate this issue on a clean install, so I would check your error logs for clues (admin log, php error log, and javascript console).
If there's no clues in any of the logs then you'll need to do a bit of troubleshooting - try with different templates in Gallery, and/or a different form and form template in FB.
If there's no clues in any of the logs then you'll need to do a bit of troubleshooting - try with different templates in Gallery, and/or a different form and form template in FB.
Not getting the answer you need? CMSMS support options
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
I tried diffent tempates on the form and gallary.
CMSMS information
Got those Caution warrings (anyone of those could stop it working?) I don't where and how to change them. I think I need to ask the hosing to change some settings. What do I need to ask change on the hosting side?
Test for remote URL (test_remote_url)
sockopen: Connection ok! Success
fopen: When allow URL fopen is disabled you will not be able to accessing URL object like file using the ftp or http protocol.
disable_functions in PHP (disable_functions)
passthru, shell_exec, system
Is E_STRICT disabled in error_reporting (E_STRICT)
E_STRICT is enabled in the error_reporting
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED)
E_DEPRECATED is enabled
I looked for the stylesheet.php and its missing so I look at the svn to download it and still dosnt work.
Latest web server error log messages:
php.ini
Also I try using PHP Version 7.2.32 and 7.3
Thank you
CMSMS information
Got those Caution warrings (anyone of those could stop it working?) I don't where and how to change them. I think I need to ask the hosing to change some settings. What do I need to ask change on the hosting side?
Test for remote URL (test_remote_url)
sockopen: Connection ok! Success
fopen: When allow URL fopen is disabled you will not be able to accessing URL object like file using the ftp or http protocol.
disable_functions in PHP (disable_functions)
passthru, shell_exec, system
Is E_STRICT disabled in error_reporting (E_STRICT)
E_STRICT is enabled in the error_reporting
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED)
E_DEPRECATED is enabled
I looked for the stylesheet.php and its missing so I look at the svn to download it and still dosnt work.
Latest web server error log messages:
Code: Select all
[Wed Sep 02 18:43:53.527399 2020] [autoindex:error] [pid 9074] [client 104.131.90.218:52284] AH01276: Cannot serve directory /home/backdrop/public_html/: No matching DirectoryIndex (index.php,index.php7,index.php5,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.js) found, and server-generated directory index forbidden by Options directive
[Wed Sep 02 18:02:17.642085 2020] [:error] [pid 31668] [client 82.32.67.94:60604] File does not exist: /home/backdrop/public_html/test/stylesheet.php, referer: http://backdrop.org.uk/test/index.php?page=home
[Wed Sep 02 18:02:17.524671 2020] [:error] [pid 31668] [client 82.32.67.94:60604] File does not exist: /home/backdrop/public_html/test/stylesheet.php, referer: http://backdrop.org.uk/test/index.php?page=home
php.ini
Code: Select all
display_errors = Off
max_execution_time = 90
max_input_time = 60
max_input_vars = 1000
memory_limit = 128M
post_max_size = 64M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php72"
upload_max_filesize = 64M
zlib.output_compression = Off
Thank you
Re: Formbuilder and gallery module bug? Help
2.x shouldn't be looking for stylesheet.php, I don't think that's been used since 1.x. Something fishy there...
Not getting the answer you need? CMSMS support options
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
If I put {Gallery} in a page both Modules work. Its doesnt work when I put both tags in the design tenplace then stops working.
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
Did you try both tags together in a templace? not in content Manager
DIGI3 wrote: ↑Wed Sep 02, 2020 9:35 pm I can't recreate this issue on a clean install, so I would check your error logs for clues (admin log, php error log, and javascript console).
If there's no clues in any of the logs then you'll need to do a bit of troubleshooting - try with different templates in Gallery, and/or a different form and form template in FB.
Re: Formbuilder and gallery module bug? Help
Yep, tried in a template and in a content block. Both of those are popular modules used on thousands of sites, you wouldn't be the first to try using both on the same page/template. It's something specific to your site/server/templates, but I still think those messages in the error log point to a failed upgrade or something else amiss.
Not getting the answer you need? CMSMS support options
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
I instelled it on my local sever using Mamp PRO on the mac and stil can't get it work.
CMSMS System Information everything is workig no warning.
Those are the steps I taken for a clean install no updating.
1.Downloaded the cmsms-2.2.14-install.expanded.zip
2.1 copied the uncompress files by ftp (CMSMS installer foler)
2.3 then install it the root dir.
3. installed Formbuilder
4. installed Gallery
5 used Basic Core::Page templace.
6 Added {Gallery} & {FormBuilder form='contact'} smarty to the templace
7. set the page to new basic templace. (Didnt work with SmpleX templace)
8. Show page and only get a submit button.
9. try diffent builtin gallery templates and both contact forms was preintalled.
What I am missing? Did I leave something out.
Thank you
Page Template
CMSMS System Information everything is workig no warning.
Those are the steps I taken for a clean install no updating.
1.Downloaded the cmsms-2.2.14-install.expanded.zip
2.1 copied the uncompress files by ftp (CMSMS installer foler)
2.3 then install it the root dir.
3. installed Formbuilder
4. installed Gallery
5 used Basic Core::Page templace.
6 Added {Gallery} & {FormBuilder form='contact'} smarty to the templace
7. set the page to new basic templace. (Didnt work with SmpleX templace)
8. Show page and only get a submit button.
9. try diffent builtin gallery templates and both contact forms was preintalled.
What I am missing? Did I leave something out.
Thank you
Page Template
Code: Select all
{strip}
{process_pagedata}
{/strip}<!doctype html>
<__html lang="{cms_get_language}">
<head>
<title>{title} - {sitename}</title>
{metadata}
{cms_stylesheet}
</head>
</__body>
<header id="header">
<h1>{sitename}</h1>
</header>
<nav id="menu">
{Navigator}
</nav>
<section id="content">
<h1>{title}</h1>
{Gallery}
{FormBuilder form='contact1'}
{content}
</section>
<__body>
</__html>-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
Also I did try this trick which got the form to show up. but didn't work as would show two form when submit the forms with the fields missing.
{capture "form"}
{FormBuilder form='contact'}
{/capture}
{Gallery}
{$smarty.capture.form}
{capture "form"}
{FormBuilder form='contact'}
{/capture}
{Gallery}
{$smarty.capture.form}
Re: Formbuilder and gallery module bug? Help
The two forms thing is probably because you need to set it to inline if you're calling it in the template and not the main content block.
The fact that capturing it works probably just means that calling formbuilder before gallery eliminates the conflict, or at least moves it to where it no longer interferes. That said, it really shouldn't matter the order, and it doesn't on my tests.
I've set up various tests using your exact template and instructions and can't recreate the issue, so it's still a mystery unique to you. If you want to dm me with an admin login (and ideally hosting access too so I can monitor the logs) I can have a look, but I'm out of guesses without access.
The fact that capturing it works probably just means that calling formbuilder before gallery eliminates the conflict, or at least moves it to where it no longer interferes. That said, it really shouldn't matter the order, and it doesn't on my tests.
I've set up various tests using your exact template and instructions and can't recreate the issue, so it's still a mystery unique to you. If you want to dm me with an admin login (and ideally hosting access too so I can monitor the logs) I can have a look, but I'm out of guesses without access.
Not getting the answer you need? CMSMS support options
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
Yes that would be great. Do you want a empty site so you can do a fresh install or do you want me to install it and the 2 modules?
I do have a test site at backdrop.org.uk/test but the main site is going to be on sheffieldvoices.org.uk.
Thank you so much. Your help is really apreciated. I am a volunteer for people with learning disabilities a self advocacy group.
I am helping them to build a website to give them a voice and for them to give out training about disability awareness etc.
I well PM you with the password for the cpanel etc.
Thank you so much.
I do have a test site at backdrop.org.uk/test but the main site is going to be on sheffieldvoices.org.uk.
Thank you so much. Your help is really apreciated. I am a volunteer for people with learning disabilities a self advocacy group.
I am helping them to build a website to give them a voice and for them to give out training about disability awareness etc.
I well PM you with the password for the cpanel etc.
Thank you so much.
Re: Formbuilder and gallery module bug? Help
I finally managed to recreate the issue and it does seem to be a bug in FormBuilder - it looks like it checks to see if the $fields value has something in it, and as Gallery also uses that variable, FB decides to not populate it so ends up cycling through Gallery custom fields instead of the form fields.
I will file a bug report for formbuilder. Your workaround of using {capture} is probably best for now.
I will file a bug report for formbuilder. Your workaround of using {capture} is probably best for now.
Not getting the answer you need? CMSMS support options
-
andrewvideouk
- Forum Members

- Posts: 156
- Joined: Thu Aug 20, 2020 10:49 pm
Re: Formbuilder and gallery module bug? Help
Thank you for your help. Hope it get fix soon. Capture is a good work round.
Re: Formbuilder and gallery module bug? Help
It has been reproduced and fixed. There will be a new release soon, thanks for reporting.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!

