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

rajeev_drupal created an issue. See original summary.

dishabhadra’s picture

Hi 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.

heykarthikwithu’s picture

Status: Active » Needs review

Yup 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..

dawehner’s picture

Priority: Critical » Major
Status: Needs review » Postponed (maintainer needs more info)

@dishabhadra
One thing I'm wondering, did you installed both modules at the same time? Maybe there was an error while doing so.

rajeev_drupal’s picture

Hi 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

rajeev_drupal’s picture

Status: Postponed (maintainer needs more info) » Active
cilefen’s picture

Are you sure that your installation is complete with all files? What is the RAM allocated to PHP and the opcache?

rajeev_drupal’s picture

Hi All,

I have done registry rebuild/clear cache and now this is working.
Thanks for your valuable input/suggestion.

rajeev_drupal’s picture

Assigned: Unassigned » rajeev_drupal
Status: Active » Fixed
cilefen’s picture

cilefen’s picture

Component: rest.module » serialization.module
Assigned: rajeev_drupal » Unassigned
Status: Fixed » Active
Related issues: +#2387983: PluginNotFoundException when enabling module that provides text filter

I am reopening because you shouldn't have to do that.

damiankloip’s picture

Why 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.

cilefen’s picture

Component: serialization.module » plugin system

ok

Wim Leers’s picture

Agreed 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.

Version: 8.1.10 » 8.1.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.1.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
quietone’s picture

Version: 9.3.x-dev » 9.5.x-dev
Status: Active » Closed (outdated)
Issue tags: +Bug Smash Initiative

@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!