This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

image resize after upload

I'm trying to upgrade a d7 module to d9.

I'm able to upload a image via the managed_file form, but i like to scale/crop the image afterwards.

In D7 i've had a code like this:

Adding node edit form to existing route with parameters

I would like to alter the node edit form location so instead of having node/{node}/edit to {person}/node/{node}/edit, I have used a routeSubscriber to alter the path and if i go to /nick that page works fine ,but nick/node/1/edit gives me a 404, /node/1/edit gives me a 404 so i assume that the route has been altered but i cant seem to get this route to work.

Any help apreciated

TLDR: is there a way to add an existing route to an existing route that contains parameters

Tracker

Hello,

Tracker

How can I Make this Module Work Appropriately in Drupal 7 Thanks?

Expected parameter of type \Node... \NodeInterface provided

I develop in PhpStorm and it is complaining with the message:

Expected parameter of type \Drupal\node\Entity\Node, \Drupal\node\NodeInterface provided

Does this suggest I'm doing something wrong? In my class I have something like the following...

Need help for error code when switching from 5.3 to 5.6

Dear Drupal Community,

I am getting following error code:

Warning: Creating default object from empty value in adaptivetheme_preprocess_html() ( line 14 of / urs / ww / users / immobigg / drupal 7 / sites / all / themes / adaptivetheme / inc / template, process. inc)

1.) Can anybody tell me how to solve it - where do I have to change or delete something?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions