A plugin by the name "Album\Segment" was not found in the plugin manager

wordpress plugins
wordpress plugin development
plugin uri
wordpress plugin structure
wordpress plugin example
wordpress plugin standards
wordpress plugin boilerplate
wordpress developer plugin

I am following the zend 3 tutorial on how to create modules (they use the album blog as an example) creating a blog

However I ran into the following error when I created the module;

A plugin by the name "Album\Segment" was not found in the plugin manager Fatal error: Uncaught exception Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'A plugin by the name "Album\Segment" was not found in the plugin manager Zend\Router\RoutePluginManager' in C:\xampp\htdocs\zf- tutorial\vendor\zendframework\zend- servicemanager\src\AbstractPluginManager.php:131`

It appears that a plugin is missing. I am not the only one who has experienced this problem.

lean438 raised the same problem at the zend forumn

Put this line in module.config.php file in album module directory:

use Zend\Router\Http\Segment;

Writing a Plugin « WordPress Codex, You can change the name of your plugin, you just can't change the url slug of your plugin. Meaning, if you initially added a plugin to the repo and it was called  the file name and plugin changes - not always the same. doing a clean on the solution will resolve these errors. I've never had to combine religion and coding before.

Just add use Zend\Router\Http\Segment; The other line does not appear to be needed to fix this issue.

Change the name of an installed plugin, Yeah, you are on correct track, but you need to change name before installing plugin. plugins$ mkdir plugin-name plugins$ cd plugin-name plugin-name$ vi plugin-name.php. In the example above, “vi” is the name of the text editor. Use whichever editor that is comfortable for you. Now that you’re editing your new plugin’s PHP file, you’ll need to add a plugin header comment. This is a specially formatted PHP block comment that contains metadata about the plugin, such as its name, author, version, license, etc.

just add following Code into module/Album/config/module.config.php

Following Is entire code File

namespace Album; 
use Zend\Router\Http\Segment;
use Zend\ServiceManager\Factory\InvokableFactory;
return [
'router' => [ 
    'routes' => [
        'album' => [
            'type'    => Segment::class,
            'options' => [
                'route' => '/album[/:action[/:id]]',
                'constraints' => [
                    'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                    'id'     => '[0-9]+',
                ],
                'defaults' => [
                    'controller' => Controller\AlbumController::class,
                    'action'     => 'index',
                ],
            ],
        ],
    ],
],

 'view_manager' => [
    'template_path_stack' => [
        'album' => __DIR__ . '/../view',
    ],
],
];

Change plugin name on WordPress repo, Is it a plugin and if so which or does this specific bar have a name that I'm not aware of? Cheers and thanks for your help, M. Aug 7, 2013 at 6:33  Exception Details: System.Exception: A plugin with 'plugin.name' system name is already defined Source Error: Line 115: throw new Exception(string.Format("A plugin '{0}' has no system name. Try assigning the plugin a unique name and recompiling.", descriptionFile.FullName));

How to rename WordPress plugin?, The main plugin file should adopt the name of the plugin, e.g., A plugin with the directory name plugin-name would  » Internet » Windows » Tech Ease: A plugin is a piece of software that acts as an add-on to a web browser and gives the browser additional functionality. Plugins can allow a web browser to display additional content it was not originally designed to display. An example of a plugin is the free Macromedia Flash Player, a plugin that allows the

Top WordPress Plugins: The 100 Best For Your Site, php /* Plugin Name: Awesomeness Creator Plugin URI: http://my-awesomeness-​emporium.com description: >- a plugin to create awesomeness  In computing, a plug-in (or plugin, add-in, addin, add-on, or addon) is a software component that adds a specific feature to an existing computer program. When a program supports plug-ins, it enables customization.

WooCommerce Plugin Developer Handbook, This is not an ideal plugin name, and in this Joomla 2.5 tutorial we'll show you how to rename a plugin. The following table shows where in the  (string) The name of a plugin. More Information # More Information This function gets the path to a plugin file or directory, relative to the plugins directory, without the leading and trailing slashes. Uses both the WP_PLUGIN_DIR and WPMU_PLUGIN_DIR constants internally, to test for and strip the plugins directory path from the $file path.

Comments
  • This definitely fixes the issue, but I'm wondering why? A previous step explicitly removed one of the lines required to fix it... use Zend\ServiceManager\Factory\InvokableFactory;