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

  • SEARCH
  • Home
  • 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 7928143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:39:38+00:00 2026-06-03T19:39:38+00:00

I’m creating my module on magento 1.6.2.0 with WAMP server; when I try to

  • 0

I’m creating my module on magento 1.6.2.0 with WAMP server;
when I try to add my tables to the magento database theres an exception, and in the Mysql page my tables a not created but I found the name of my module with under the table “core_ressource” ;
can you help me please ?

This is my PHP upgrade page:

<?php


    $installer = $this;

    $installer->startSetup();
    /**
     * Create table 'interactivebanner/interactivebanner'
     */
    $table = $installer->getConnection()
        ->newTable($installer->getTable('interactivebanner/interactivebanner'))
        ->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
            'identity'  => true,
            'unsigned'  => true,
            'nullable'  => false,
            'primary'   => true,
            ), 'Entity Id')
        ->addColumn('name', Varien_Db_Ddl_Table::TYPE_TEXT,100, array(
            'nullable'  => false,
            'default'   => '',
            ), 'Name')
        ->addColumn('link', Varien_Db_Ddl_Table::TYPE_TEXT,255, array(
            'nullable'  => false,
            'default'   => '',
            ), 'Link')
        ->addColumn('status', Varien_Db_Ddl_Table::TYPE_INTEGER,null, array(
            'unsigned'  => true,
            'nullable'  => false,
            'default'   => '0',
            ), 'Status');
    $installer->getConnection()->createTable($table);

     /**
     * Create table 'interactivebanner/interactivebannerprod'
     */
    $table = $installer->getConnection()
        ->newTable($installer->getTable('interactivebanner/interactivebannerprod'))
        ->addColumn('value_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
            'identity'  => true,
            'nullable'  => false,
            'primary'   => true,
            ), 'Value ID')
        ->addColumn('tag_content', Varien_Db_Ddl_Table::TYPE_TEXT, 255, array(
            'nullable'  => false,
            'default'   => '',
            ), 'Status id')
        ->addColumn('entity_id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
            'unsigned'  => true,
            'nullable'  => false,
            'default'   => '0',
             ), 'Entity Id')
        ->addColumn('position_v', Varien_Db_Ddl_Table::TYPE_TEXT,10, array(
            'nullable'  => false,
            'default'   => '0',
            ), 'Position V')
        ->addColumn('position_h', Varien_Db_Ddl_Table::TYPE_TEXT,10, array(
            'nullable'  => false,
            'default'   => '0',
            ), 'Position H')
        ->addForeignKey($installer->getFkName('interactivebanner/interactivebanner', 'entity_id', 'interactivebanner/interactivebannerprod', 'entity_id'),
            'entity_id', $installer->getTable('interactivebanner/interactivebannerprod'), 'entity_id', Varien_Db_Ddl_Table::ACTION_CASCADE, Varien_Db_Ddl_Table::ACTION_CASCADE);
    $installer->getConnection()->createTable($table);

  $installer->endSetup();

and this is the exception:

Exception Object
(
    [message:protected] => Notice: Trying to get property of non-object  in C:\wamp\www\ce_1.6.2.0\app\code\core\Mage\Core\Model\Resource.php on line 230
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => C:\wamp\www\ce_1.6.2.0\app\code\core\Mage\Core\functions.php
    [line:protected] => 245
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => C:\wamp\www\ce_1.6.2.0\app\code\core\Mage\Core\Model\Resource.php
                    [line] => 230
                    [function] => mageCoreErrorHandler
                    [args] => Array
                        (
                            [0] => 8
                            [1] => Trying to get property of non-object
                            [2] => C:\wamp\www\ce_1.6.2.0\app\code\core\Mage\Core\Model\Resource.php
                            [3] => 230
                            [4] => Array
                                (
                                    [model] => Kiwi_InteractiveBanner_Resource
                                    [entity] => interactivebanner
                                    [modelsNode] => Mage_Core_Model_Config_Element Object
                                        (
                                            [varien] => Mage_Core_Model_Config_Element Object
                                                (
                                                    [class] => Varien
                                                )

                                            [core] => Mage_Core_Model_Config_Element Object
                                                (
                                                    [class] => Mage_Core_Model
                                                    [resourceModel] => core_resource
                                                )

                                            [core_resource] => Mage_Core_Model_Config_Element Object
                                                (
                                                    [class] => Mage_Core_Model_Resource
                                                    [deprecatedNode] => core_mysql4
                                                    [entities] => Mage_Core_Model_Config_Element Object
                                                        (
                                                            [config_data] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_config_data
                                                                )

                                                            [website] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_website
                                                                )

                                                            [store] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_store
                                                                )

                                                            [resource] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_resource
                                                                )

                                                            [cache] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_cache
                                                                )

                                                            [cache_tag] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_cache_tag
                                                                )

                                                            [cache_option] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_cache_option
                                                                )

                                                            [store_group] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_store_group
                                                                )

                                                            [config_field] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_config_field
                                                                )

                                                            [email_template] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_email_template
                                                                )

                                                            [variable] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_variable
                                                                )

                                                            [variable_value] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_variable_value
                                                                )

                                                            [translate] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_translate
                                                                )

                                                            [session] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_session
                                                                )

                                                            [layout_update] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_layout_update
                                                                )

                                                            [layout_link] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] => core_layout_link
                                                                )

                                                            [url_rewrite] => Mage_Core_Model_Config_Element Object
                                                                (
                                                                    [table] =>  ...

this is a part of my config.xml

    <models>
        <interactivebanner>
            <class>Kiwi_InteractiveBanner_Model</class>
            <resourceModel>Kiwi_InteractiveBanner_Resource</resourceModel>
        </interactivebanner>
        <interactivebanner_resource>
            <class>Kiwi_InteractiveBanner_Model_Resource</class>
            <entities>
                <interactivebanner>
                    <table>interactivebanner</table>
                </interactivebanner>
                <interactivebannerprod>
                    <table>interactivebannerprod</table>
                </interactivebannerprod>
            </entities>
        </interactivebanner_resource>
    </models>
  • 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-06-03T19:39:41+00:00Added an answer on June 3, 2026 at 7:39 pm

    the error was in the config.xml file :

    <interactivebanner>
    <class>Kiwi_InteractiveBanner_Model</class>
    <resourceModel>interactivebanner_resource</resourceModel>
    </interactivebanner>
    

    instead of :

    <interactivebanner>
    <class>Kiwi_InteractiveBanner_Model</class>
    <resourceModel>Kiwi_InteractiveBanner_Resource</resourceModel>
    </interactivebanner>
    

    thx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have a reasonable size flat file database of text documents mostly saved in
I'm making a simple page using Google Maps API 3. My first. One marker
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I have just tried to save a simple *.rtf file with some websites and

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.