silverstripe-seo icon indicating copy to clipboard operation
silverstripe-seo copied to clipboard

not compatible with userforms 5.3.2

Open guyvanbael opened this issue 5 years ago • 10 comments

using it in conjunction with userforms 5.3.2 (on ss4.3.3)

This is what's in the error log. Uncaught Exception BadMethodCallException: "Object->__call(): the method 'Fields' does not exist on 'SilverStripe\CMS\Model\SiteTree'" at /Users/xxx/Documents/webroot/xxxx/vendor/silverstripe/framework/src/Core/CustomMethods.php line 54 {"exception":"[object] (BadMethodCallException(code: 0): Object->__call(): the method 'Fields' does not exist on 'SilverStripe\CMS\Model\SiteTree' at /Users/xxx/Documents/webroot/xxx/vendor/silverstripe/framework/src/Core/CustomMethods.php:54)"} []

guyvanbael avatar Apr 02 '19 11:04 guyvanbael

+1 I have also have encountered this issue, but this time with Userforms 5.4.0 and I can confirm that the error above is caused by this module as removing it (with composer remove vulcandigital/silverstripe-seo ) fixes the issue and allows the viewing of Userforms pages.

mooror avatar May 12 '19 15:05 mooror

Had the same issue too.

jinjie avatar Jun 10 '19 16:06 jinjie

Was this issue ever fixed? I noticed that there is a commit labeled: Work around CMS crash on user-defined forms, does that commit have any effect on this issue?

mooror avatar Mar 16 '20 01:03 mooror

@mooror Since this issue is still open, i guess it isn't fixed yet

guyvanbael avatar Mar 17 '20 09:03 guyvanbael

This was fixed as of version 1.0.6.

oddnoc avatar Mar 17 '20 19:03 oddnoc

@oddnoc i'm still experiencing this issue

guyvanbael avatar May 24 '22 08:05 guyvanbael

@guyvanbael Can you provide details of your environment or a minimal example where this issue arises?

oddnoc avatar May 24 '22 17:05 oddnoc

@oddnoc using latest silverstripe (4.10), userforms 5.11.1. (and theres elemental-userforms as well 3.1.0). If i remove the silverstripe-seo module, the page is accessible again. Thanx for looking into it!

guyvanbael avatar May 26 '22 10:05 guyvanbael

I'm unable to reproduce this issue. Can you provide your composer.json?

oddnoc avatar Jun 01 '22 22:06 oddnoc

Here's the composer.json. Mind that i've swapped out the module for the toastnz's opengraph module because this site is already live. { "name": "silverstripe/installer", "type": "silverstripe-recipe", "description": "The SilverStripe Framework Installer", "require": { "php": "^7.3 || ^8.0", "silverstripe/recipe-plugin": "^1.2", "silverstripe/recipe-cms": "~4.10.0@stable", "silverstripe-themes/simple": "~3.2.0", "silverstripe/login-forms": "~4.6.0@stable", "axllent/silverstripe-email-obfuscator": "^2.0", "wilr/silverstripe-googlesitemaps": "^2.2", "symbiote/silverstripe-gridfieldextensions": "^3.3", "dnadesign/silverstripe-elemental": "^4.8", "colymba/gridfield-bulk-editing-tools": "^3.0", "silverstripe/userforms": "^5.11", "nswdpc/silverstripe-recaptcha-v3": "^0.1.2", "nswdpc/silverstripe-recaptcha-v3-userforms": "^0.1.1", "dnadesign/silverstripe-elemental-userforms": "^3.1", "toastnz/open-graph-meta": "^2.0" }, "require-dev": { "phpunit/phpunit": "^9.5" }, "extra": { "resources-dir": "_resources", "project-files-installed": [ "app/.htaccess", "app/_config.php", "app/_config/mimevalidator.yml", "app/_config/mysite.yml", "app/src/Page.php", "app/src/PageController.php" ], "public-files-installed": [ ".htaccess", "index.php", "web.config" ], "expose": [ "themes/otto/dist" ] }, "config": { "process-timeout": 600, "allow-plugins": { "composer/installers": true, "silverstripe/vendor-plugin": true, "silverstripe/recipe-plugin": true } }, "prefer-stable": true, "minimum-stability": "dev" }

guyvanbael avatar Jun 02 '22 14:06 guyvanbael