cancel
Showing results for 
Search instead for 
Did you mean: 

M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Hallo Gemeinde,

ich möchte zwei Erweiterungen installieren von swissuplabs.

Beide Erweiterungen werden seit Jahren entwickelt, ich denke also, dass die funktionieren sollten.

Ich installiere die Erweiterungen wie angegeben, durch einfaches kopieren in den Account.

 

Anschliessend Cache leer, neu anmelden, und dann schaue ich in die Datenbank und finde die neuen Tabellen nicht.

 

Der errorlog des Servers gibt keine Fehler diesbezüglich aus, aber wenn ich die Erweiterungen nutzen möchte, dann kommt, dann kommt ein Report, dass Tabellen fehlen (doesn't exist).

 

Wie kann ich die Installation loggen, bei der die Tabellen angelegt werden sollen, also beim ersten Aufruf der Erweiterung?

 

Grüsse aus der Nacht

Thomas

 

 

7 REPLIES 7

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Hi @DifficultChild ,

 

If you are facing this issue in Magento 2, then after copying the extension code in the app/code folder. You need to run some commands for module setup

php bin/magento setup:upgrade
php bin/magento setup:di:compile php bin/magento setup:static-content:deploy
php bin/magento c:f

 

Thanks!

Problem Solved! Click Kudos & Accept as a Solution!

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Hi Nishu,

Thanks for your trouble, but it's a Magento 1. The compiler is disabled and the cache is disabled.

 

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Hi @DifficultChild ,

 

Can you please mention the extensions which you have copied (vendor_module) and the location where you have copied in the folder structure.

Thanks!

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

this is the structure from the extension archive:

- app

- js

- lib

- skin

this is the instructions:

1. Navigate to Admin > Tools > Compilation and deactivate the compilation mode for your store.
2. Check if your Magento store cache is enabled.
3. Unpack all files from extension archive into your magento store root directory.
4. Refresh your magento store cache.
5. Logout from your store admin and then login back, to refresh your admin user access rights.

6. Navigate to System > Configuration > Templates-Master > Page Speed and enable extension for any store you need.

 

this is exactly the path I have taken.

But no table is created in the database. All other functions of the extension work.

 

the path to the mysql4-install-0.1.0.php:

app/code/local/TM/Pagespeed/sql/tm_pagespeed_setup/mysql4-install-0.1.0.php

 

<?php

//throw new Exception;
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;

$installer->startSetup();

$filenameSize = TM_Pagespeed_Model_Smu**bleep**::FILENAME_SIZE_LIMIT;

$table = $installer->getConnection()
    ->newTable($installer->getTable('tm_pagespeed_smu**bleep**'))
    ->addColumn(
        'id', Varien_Db_Ddl_Table::TYPE_INTEGER, 11, array(
        'identity'  => true,
        'unsigned'  => true,
        'nullable'  => false,
        'primary'   => true,
        ), 'ID'
    )
    ->addColumn(
        'path', Varien_Db_Ddl_Table::TYPE_TEXT, $filenameSize, array(
        'nullable'  => false,
        ), 'Path'
    )
    ->addColumn(
        'source', Varien_Db_Ddl_Table::TYPE_TEXT, $filenameSize, array(
        'nullable'  => false,
        ), 'Source'
    )
    ->addColumn(
        'src_size', Varien_Db_Ddl_Table::TYPE_INTEGER, 7, array(
        'unsigned'  => true,
        'nullable'  => false,
        ), 'Source size'
    )
    ->addColumn(
        'dest_size', Varien_Db_Ddl_Table::TYPE_INTEGER, 7, array(
        'unsigned'  => true,
        'nullable'  => false,
        ), 'Destanation size'
    )
    ->addColumn(
        'percent', Varien_Db_Ddl_Table::TYPE_SMALLINT, 5, array(
        'unsigned'  => true,
        'nullable'  => true,
        ), 'Percent'
    )
    ->addColumn(
        'smushed', Varien_Db_Ddl_Table::TYPE_TINYINT, 1, array(
        'nullable'  => false,
        'default'   => 0,
        ), 'Optimized'
    )
    ->addColumn(
        'created', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, 10, array(
        'unsigned'  => true,
        'nullable'  => false,
        'default'   => Varien_Db_Ddl_Table::TIMESTAMP_INIT,
        ), 'Created'
    );
$installer->getConnection()->createTable($table);

$installer->endSetup();

the code seems to be okay.

Is there another way to run this file?
Or extract the SQL query from the file and simply execute it manually in the DB?

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Hi @DifficultChild ,

Yes another way to run this file again is:

1.in your database check for table core_resources and check for tm_pagespeed_setup entry.

2. Delete that entry and refresh the magento instance frontend again.

3. Before refreshing magento frontend. Clear all var/log entries and check if there is any error while running the installer script.

 

Hope this helps you. 

Problem Solved! Click Kudos & Accept as Solution!

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Das Problem ist viel grösser.
Egal welche Erweiterung: Es werden keine Datenbanktabellen angelegt.

 

The problem is much bigger.
No matter which extension: No database tables are created.

 

Es gibt keine Fehlermeldungen im errorlog des Servers.

Alle bereits installierten Erweiterungen funktionieren, aber ich kann keine neuen Erweiterungen installieren (wenn dabei Tabellen angelegt werden müssen).

Ich habe meine Dateien verglichen mit den Dateien vom Mirror von OpenMage. Meine 1.9.4.5 scheint identisch mit dem Original.

 

There are no error messages in the errorlog of the server.

All already installed extensions work, but I cannot install new extensions (if tables have to be created). I have compared my files with the files from the mirror of OpenMage. My 1.9.4.5 seems identical to the original.

 

Bitte helft mir. Wo kann ich ansetzen? Warum werden bei der Installation von Erweiterungen keine Tabellen angelegt und es werden auch die Erweiterungen nicht eingetragen in "core_resource". Die MySQL-Version ist 5.7.28

 

Kann die MySQL-Version das Problem sein? Beim Anlegen von Tabellen?

Re: M1 Tabellen eine extension werden nicht angelegt und keine Fehlermeldung

Hi @DifficultChild ,

 

Can you please check some below points:

 

1. First, please confirm database name which you are using in your Magento instance local.xml file is the same which database you are referring.

2. If there is any prefix and suffix attached to tables, that is also mentioned in the local.xml file.

3. Database User which configured in the local.XML file has all access rights especially (write access on the database).

4. Last but most important, please check you have sufficient space in your database.

 

Note: For a testing purpose, can you please try creating an entry in other extension tables that are already there from the frontend as well as backend. 

 

Thanks!

 

Problem Solved! Click Kudos & Accept as Solution!