Account created on 4 November 2011, about 13 years ago
#

Recent comments

🇦🇹Austria paper boy

Thank you for the commit @kazajhodo! Fixes the problem for us.

Also added the patch we used to temporarily fix the problem on our sites before 1.1.12 was released.

🇦🇹Austria paper boy

Updated info about checking for security related updates. Use composer instead of drush.

🇦🇹Austria paper boy

Thank you for the interesting talk and the delightful evening! It was a pleasure meeting everyone.

🇦🇹Austria paper boy

The solution in #20 is working well for me on Drupal 9.5.11 when performing the following steps:

Uncheck all options from Menu Token config at /admin/config/menu_token

Disable the module:

drush -y pmu menu_token

Remove the dead route:

drush sql:query "DELETE from menu_tree WHERE route_name = 'menu_token.available_entities_configuration_form'"

Rebuild cache:

drush cr
🇦🇹Austria paper boy

I am having the same problem with 1.1.x version.

🇦🇹Austria paper boy

Added info about creating constraint boilerplate code using Drush. Explained how to use setConstraints() to add multiple constraints to a field at once.

🇦🇹Austria paper boy

Updated summary and introduction.

🇦🇹Austria paper boy

Changed the random ID "WetPersonallistenEndTimeConstraint" to "MyModuleStartEndTimeConstraint" and added explaination of the ID annotation.

Changed field names to english language.

🇦🇹Austria paper boy

Thank you @shivam_tiwari. Did not run a test but code looks good to me now.

@podarok, could you please merge and run a test?

🇦🇹Austria paper boy

setUp() must be defined as protected function setUp(): void {

I also see some other errors when I open ContentModerationTranslationTest.php in Vscode:

Undefined method 'drupalPostAjaxForm'
Undefined method 'drupalPostAjaxForm'
Undefined method 'assertTrue'

🇦🇹Austria paper boy

The test in ContentModerationTranslationTest.php and InlineEntityFormTestBase require some refactoring, as InlineEntityFormTestBase extends WebDriverTestBase.

ContentModerationTranslationTest.php requires a use Drupal\Tests\inline_entity_form\FunctionalJavascript\InlineEntityFormTestBase; and the deprecated calls to drupalPostAjaxForm(..) need to replaced with drupalPostForm.

See https://www.drupal.org/docs/automated-testing/converting-simpletests-to-... .

🇦🇹Austria paper boy

The patch #8 creates /src/Tests/ContentModerationTranslationTest.php. ContentModerationTranslationTest extends InlineEntityFormTestBase which is not defined in this namespace.

This breaks automatic tests on the 2.0.x branch:

PHP Fatal error: Uncaught Error: Class "Drupal\inline_entity_form\Tests\InlineEntityFormTestBase" not found in /var/www/html/modules/contrib/inline_entity_form/src/Tests/ContentModerationTranslationTest.php:12

See this result for example: https://www.drupal.org/pift-ci-job/2666453

🇦🇹Austria paper boy

Patch applies successfully to 2.0.x-dev and 2.0@beta.

Automated tests for patch #15 fail with PHP 8.1 & MySQL 8, D9.5 run-tests.sh fatal error due to an unrelated error:

PHP Fatal error: Uncaught Error: Class "Drupal\inline_entity_form\Tests\InlineEntityFormTestBase" not found in /var/www/html/modules/contrib/inline_entity_form/src/Tests/ContentModerationTranslationTest.php:12

🇦🇹Austria paper boy

Rerolled patch #5 for 2.0.x-dev branch and fixed some coding standard issues.

🇦🇹Austria paper boy

Thanks for your hint @ ghalusa . I fixed the first code block, updated description and reverted the page status.

🇦🇹Austria paper boy

Added example for a complex custom constraint validator and some additional notes.

🇦🇹Austria paper boy

Ran into the same problem with Tome 8.x-1.10 and Drupal 9.5.4 on a site still running on PHP7.4 (fpm and cli). I am not sure, if the same problem exists with PHP8.x.

I'm working on a host with multiple PHP versions, so I'm calling Tome static export via CLI from project root directory with the following command:

php7.4 vendor/bin/drush --root=/var/www/sites/mysite tome:static --uri=https://www.example.com

Reverting back to Tome 8.x-1.8 fixes the problem.

Production build 0.71.5 2024