Jump to content
artaylor

[solved] Invalid Module Name

Recommended Posts

Hi,

This is my first attempt to write a PW module. I have built dozens of sites without writing my own modules, but figured it is time to up my PW game. I assume this is a stupid noob error, but I get the "Invalid Module Name" error in admin when I refresh the modules list.

Name of class: CCBillIntegration, Name of Module file: CCBillIntegration.module

Full extent of .module file:

<?php namespace ProcessWire;

class CCBillIntegration extends WireData implements Module {
	/**
	 * getModuleInfo is a module required by all modules to tell ProcessWire about them
	 *
	 * @return array
	 */
	public static function getModuleInfo() 
	{
		return array(
			'title' => 'CCBill Integration', 
			'version' => "0.1.0", 
			'summary' => 'A module to allow CCBill payment processing and user management integration.',
			'singular' => true, 
			'autoload' => true, 
			'icon' => 'credit-card' 
		);
	}

}

Thanks.

Share this post


Link to post
Share on other sites

ProcessWire doesn't like module names that have an uppercase letter at the second position, so switching that to lowercase should fix it. Just change CCBillIntegration to CcBillIntegration.

  • Like 2

Share this post


Link to post
Share on other sites

Moderator note: I'm moving this thread to the "Module/Plugin Development" section. Modules/Plugins section is intended for support threads for existing modules only 🙂

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...