Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7044045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:21:46+00:00 2026-05-28T02:21:46+00:00

I am creating a custom Magento module, and I cannot get the setup resource

  • 0

I am creating a custom Magento module, and I cannot get the setup resource script to run. I am following Alan Storm’s tutorial on it, but cannot seem to track down the issue.

I have scaled it down to simply attempt to force an error that my …Model_Resource_Mysql4_Setup cannot be found as per the tutorial, but I cannot even seem to generate that (I get no errors at all).

The module does show up in System->Configuration->Advanced. I have all Magento caching disabled. There are no entries for this module in the core_resource table. What am I missing below? Shouldn’t these two files be enough to generate an exception error such as:

Fatal error: Class 'CBTools_Twilliotool_Model_Resource_Mysql4_Setup' not found in

…since I do not have the class defined in Model/Resource/Mysql4/Setup.php? If so, then I am unfortunately not getting the error.

app/etc/modules/CBTools_Twilliotool.xml

<config>
    <modules>
        <CBTools_Twilliotool>
          <active>true</active>
           <codePool>local</codePool>
        </CBTools_Twilliotool>
    </modules>
</config>

app/code/local/CBTools/Twilliotool/etc/config.xml

<config>
    <modules>
        <CBTools_Twilliotool>
            <version>0.1.0</version>
        </CBTools_Twilliotool>
    </modules>
    <models>
        <twilliotool>
            <class>CBTools_Twilliotool_Model</class>
            <resourceModel>twilliotool_mysql4</resourceModel>
        </twilliotool>
    </models>
    <resources>
        <twilliotool_setup>
            <setup>
                <module>CBTools_Twilliotool</module>
                <class>CBTools_Twilliotool_Model_Resource_Mysql4_Setup</class>
            </setup>
            <connection>
                <use>core_setup</use>
            </connection>
        </twilliotool_setup>
    </resources>
</config>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:21:46+00:00Added an answer on May 28, 2026 at 2:21 am

    You’re missing a configuration node. The <models> and <resource> tags belong inside a <global> tag.

    <config>
        <modules>
            <CBTools_Twilliotool>
                <version>0.1.0</version>
            </CBTools_Twilliotool>
        </modules>
        <global>
            <models>
                <twilliotool>
                    <class>CBTools_Twilliotool_Model</class>
                    <resourceModel>twilliotool_mysql4</resourceModel>
                </twilliotool>
            </models>
            <resources>
                <twilliotool_setup>
                    <setup>
                        <module>CBTools_Twilliotool</module>
                        <class>CBTools_Twilliotool_Model_Resource_Mysql4_Setup</class>
                    </setup>
                    <connection>
                        <use>core_setup</use>
                    </connection>
                </twilliotool_setup>
            </resources>
        </global>
    </config>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Magento I'm creating a custom module and would love to be able to
I am creating a custom module for a Magento ecommerce site, and the module
I was following a tutorial on creating custom buttons . If I apply the
Jython is great for creating custom data structures on need basis, but how to
I'm creating custom table view cells, but result is incorrect. My code: - (UITableViewCell
I am looking into creating custom keyboard for Android, but I would like to
I'm creating custom window title. I did it with requestWindowFeature and setFeatureInt but not
I use PopupWindow class for creating custom popup window. But when I add layout_margin
I have done a magento custom module and I want to make a translation
I'm often creating custom assertion methods for my JUnit tests. eg: public void assertArrays(String[]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.