Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have enabled 'RESTful Web Services' and the 'Serialization' module.
After that ,I am not able to create a view of 'Provide a REST export' view type.
When I am trying to create a view of rest export, It's giving below error:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "serializer" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of C:\xampp\htdocs\my_project\web\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).
Can someone please advise on this?
Comments
Comment #2
dishabhadra CreditAttribution: dishabhadra at Blisstering Solutions, Iksula commentedHi Rajeev,
Your bug is not reproducable.
In D8 I used both this module and created the REST API with view.
If you can provide more info I can help you.
Comment #3
heykarthikwithuYup Rajeev, was not able to reproduce the bug..
Could you cross check once again, might be some other dependencies would be left to reproduce this case..
Comment #4
dawehner@dishabhadra
One thing I'm wondering, did you installed both modules at the same time? Maybe there was an error while doing so.
Comment #5
rajeev_drupal CreditAttribution: rajeev_drupal commentedHi All,
Many thanks for quickly investigate this but I am still able to reproduce the issue in fresh Drupal setup.
I have followed below step:
1. Done fresh drupal installation through composer. Drupal version 8.0.
2.Added a test content type and added some test content on that.
3.Went to admin/structure/views/add to create a view of 'Provide a REST export' to export these content
4. After click on Save and Edit it's showing 'The website encountered an unexpected error. Please try again later.'
5. In error log I am seeing below error:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "serializer" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of C:\xampp\htdocs\my_project\web\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryTrait.php).
The website encountered an unexpected error. Please try again later.
Please let me know, if you have need any other info.
Thanks,
Rajev
Comment #6
rajeev_drupal CreditAttribution: rajeev_drupal commentedComment #7
cilefen CreditAttribution: cilefen commentedAre you sure that your installation is complete with all files? What is the RAM allocated to PHP and the opcache?
Comment #8
rajeev_drupal CreditAttribution: rajeev_drupal commentedHi All,
I have done registry rebuild/clear cache and now this is working.
Thanks for your valuable input/suggestion.
Comment #9
rajeev_drupal CreditAttribution: rajeev_drupal commentedComment #10
cilefen CreditAttribution: cilefen commentedThis may be similar to issues like #2572285: Module enabling and router rebuilding should be done in one transaction.
Comment #11
cilefen CreditAttribution: cilefen commentedI am reopening because you shouldn't have to do that.
Comment #12
damiankloip CreditAttribution: damiankloip at Tag1 Consulting commentedWhy has this been changed to serialization module? The REST Export and Serializer views plugins are both in REST module. If this is a problem of a plugin not being picked up, which it looks like, this is not really an issue with either modules but the plugin system in general. These plugin managers don't do anything special with discovery etc.. Could be a weird setup with another cache backend like opcache/memcache between rebuilds or something.
Comment #13
cilefen CreditAttribution: cilefen commentedok
Comment #14
Wim LeersAgreed with those two related issues. Adding the one in #10 to the issue metadata.
We should verify whether it's the same problem, then we can close this as a duplicate.
Comment #19
quietone CreditAttribution: quietone at PreviousNext commented@rajeev_drupal, Thank you for reporting this problem and reporting back that a cache clear resolved the problem. We rely on issue reports like this to improve Drupal core.
I tested this on 9.5.x, standard install, and was not able to reproduce this error. I followed the steps in #5, with the addition of install Rest and Serialization via the UI.
Therefore, closing as outdated. If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!