I've got a webform on my site that randomly disappears. When I clear the cache, it comes back perfectly fine. I discovered that specifically clearing the bootstrap cache table fixes the problem. Any suggestions on how to fix this? It happens several times a day.

Comments

quicksketch’s picture

Hm, I've never seen this behavior. When you say it "disappears", do you mean the page itself disappears (page not found), or that the Webform within the page disappears? Is the "Webform" tab still available on the page even when the form is not displayed?

bfink’s picture

Just the webform disappears - all of the tabs are still available, and the webform title still displays. Unfortunately I haven't tried to actually edit the webform (change the fields or email settings), but the next time this happens I'll try that. The webform is the only page that this happens on too, it doesn't happen with any other modules or blocks.

quicksketch’s picture

Strange, the best guess I had would be that the Webform module was just entirely missing (cached in the "bootstrap_modules" list). I'm really not sure what could be causing such a problem, I've never seen it before personally and this is the first report. Right now I'm at a loss to explain what could be happening.

bfink’s picture

I just pulled this warning out of the reports:

Notice: Undefined index: webform_client_form_112 in drupal_retrieve_form() (line 738 of /****/html/includes/form.inc)

That mean anything to you?

River Donkey’s picture

I second this, mine keep disappearing like every 2 hours, i clear the cache and they are back. Very weird.

River Donkey’s picture

I solved this.

Th issue would be, i had 2 sites running from the same database, the forms would disappear every time i had a visitor on the other page.

Best Regards
River Donkey

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

Hm, well with no confirming reports (other than River Donkey, who seemed to have solved his problem) I don't know what we can do here. If we can reproduce the problem I'll take another look, but this sounds like it may be a conflict with another module or some configuration issue.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
basava’s picture

I have same Problem webform disappear and even i installed date module for simple news scheduler Module , date selection drop down not displaying on administration page , and apply for role module also same thing happening not displaying on registration page , But menu tabs are visible ,
when i thought overlay module cause problem disable it and modules show one time, then after not displaying, again i enabled overlay module it shows only one time

I am using drupal 7 and HTTPS for administration, i am not able to figure-it out what was the problem
please help me out

basava’s picture

on another server with sub folder path all modules working fine drupal 7 with overlay module , i am not using here HTTPS

mvpfi’s picture

I'm having this issue on one website. It is an issue only on this one site, for other sites, with similar configuration, webform-made pages are working just fine. There certainly is something different on this one install, but I can't find out what exactly is causing this. From Reports log, there is nothing coming up, nor PHP error logs. Let me describe the problem.

I have made Webform page "Survey" with a webform form, tested it, other people from other locations have tested it, with several browsers, all is good and agreed on. A while later, like two hours or so, the form disappears. Survey page is still accessible. There is title and if logged in, tabs View, Edit, Webform and Results. Results is showing the results like expected, Webform tab is also working like it used to be. Just the form itself, in View tab, is nowhere. Reading HTML source, there is no trace from it.

Form returns in its place when I go Performance -> Clear all caches. It is again usable by me or other people, logged in or out. Then it disappears again after two hours or so.

Running Cron won't return the form, only manually clearing all caches works. In my installation Webform version is 7.x-3.18. Disabling and re-enabling the module won't help.

Now, I've been struggling with this for a while. To try something new, I updated to Webform 7.x.-4.0-alpha3.tar.gz. Site crashes after enabling it, but going to update.php runs the updates on database so that site is running again. During update, Webform advises to install Token module, although later I checked from Modules page that it is not required module by Webform 7.x.-4.0-alpha3. Anyway I installed Token on the same go. Now it seems like the form is not disappearing anymore.

**COUPLE DAYS LATER**
The form is gone, again. Updating from Webform 7.x-3.18 to Webform 7.x.-4.0-alpha3 didn't help. Any ideas where I could start looking solution for this?

mvpfi’s picture

I fixed this by writing a custom module calling drupal_flush_all_caches() at every cron run.

digitalfrontiersmedia’s picture

Do any of you happen to be running the Metatag module?

Not sure if it's related or not, but I installed Metatag on a site that had no problems and then suddenly the webform block on the front page is missing for authenticated users. Grasping at straws, I know. Not even sure at this point if it's worth re-opening this or if my case is related. Just trying to find some thread of commonality.

digitalfrontiersmedia’s picture

Sorry. User error. Webform submission limit settings were reversed and the webform was eradicating itself prematurely.

BartNijs’s picture

This seems to be a very rare issue but I'm struggling with the same problem. From time to time the form(s) disappears -> becomes invisible- and clearing the cache makes it return.
When logged in the tabs (edit etc...) are on the page but when trying to edit the form fields (simply clicking the webform tab) I get this error:

Warning: Invalid argument supplied for foreach() in webform_components_form() (regel 56 van /home/k9735ken/public_html/sites/all/modules/webform/includes/webform.components.inc)

I followed mvpfi's suggestion and have written a module to clear the cache on each cron run. This doesn't solve the cause of the problem but at least the form won't disappear anymore.

Using D7.23 and Webforms 3.19

Dublin Drupaller’s picture

Issue summary: View changes

having the same issue with d7.26 and webform 3.1

Ivan Ottinger’s picture

Experiencing the same issue (Drupal 7.34; Webfrom 7.x-4.2). No idea what to do about it.

mmisinco’s picture

I'm experiencing the same issue with D7.34 and Webform 7.x-4.2 as well. I discovered that webforms are not rendered in the browser when using a Bootstrap subtheme but seem to work when using the base theme.

danchadwick’s picture

Since this is a 3 year old closed issue for the 7.x-3.x branch, please open a new issue, referencing this issue, and include information to reproduce the problem. Someone is going to have to figure out the minimum set of modules / themes that reproduces the problem and document it. I don't see any hope of progress without that.

Ivan Ottinger’s picture

Thank you very much Dan, the new issue is here https://www.drupal.org/node/2427219