
good comments Austeyr
and remember he said "Great Ext"

Ok, I manually delete the row with ID 1 from the table phpbb_video_cat and then I was able to activate 1.0.2 (after upgrading from 1.0.0).CCRoiDanton wrote:I just upgraded to the latest version 1.0.2 (from 1.0.0) and got errors after re-enabling the extension. I run the latest phpBB 3.1 (3.1.9). I cannot enable the extension anymore. Also downgrading to 1.0.0 does not work anymore with a different error when enabling.
Can you help me?
Code: Select all
SQL ERROR [ mysqli ] Duplicate entry '1' for key 'PRIMARY' [1062] SQL INSERT INTO phpbb_video_cat (video_cat_id, video_cat_title) VALUES (1, 'Uncategorized') BACKTRACE FILE: (not given by php) LINE: (not given by php) CALL: msg_handler() FILE: [ROOT]/phpbb/db/driver/driver.php LINE: 855 CALL: trigger_error() FILE: [ROOT]/phpbb/db/driver/mysqli.php LINE: 193 CALL: phpbb\db\driver\driver->sql_error() FILE: [ROOT]/phpbb/db/driver/driver.php LINE: 650 CALL: phpbb\db\driver\mysqli->sql_query() FILE: [ROOT]/phpbb/db/driver/factory.php LINE: 377 CALL: phpbb\db\driver\driver->sql_multi_insert() FILE: [ROOT]/ext/dmzx/youtubegallery/migrations/youtubegallery_install.php LINE: 155 CALL: phpbb\db\driver\factory->sql_multi_insert() FILE: (not given by php) LINE: (not given by php) CALL: dmzx\youtubegallery\migrations\youtubegallery_install->insert_sample_data() FILE: [ROOT]/phpbb/db/migrator.php LINE: 550 CALL: call_user_func_array() FILE: [ROOT]/phpbb/db/migrator.php LINE: 496 CALL: phpbb\db\migrator->run_step() FILE: [ROOT]/phpbb/db/migrator.php LINE: 322 CALL: phpbb\db\migrator->process_data_step() FILE: [ROOT]/phpbb/db/migrator.php LINE: 202 CALL: phpbb\db\migrator->try_apply() FILE: [ROOT]/phpbb/db/migrator.php LINE: 185 CALL: phpbb\db\migrator->update_do() FILE: [ROOT]/phpbb/extension/base.php LINE: 80 CALL: phpbb\db\migrator->update() FILE: [ROOT]/phpbb/extension/manager.php LINE: 187 CALL: phpbb\extension\base->enable_step() FILE: [ROOT]/includes/acp/acp_extensions.php LINE: 177 CALL: phpbb\extension\manager->enable_step() FILE: [ROOT]/includes/functions_module.php LINE: 674 CALL: acp_extensions->main() FILE: [ROOT]/adm/index.php LINE: 81 CALL: p_master->load_active()
Code: Select all
SQL ERROR [ mysql4 ]
Table 'blackfoot.w2phpbb_video' doesn't exist [1146]
SQL
SELECT COUNT(video_id) AS total_videos FROM w2phpbb_video
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysql.php
LINE: 181
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysql->sql_query()
FILE: [ROOT]/ext/dmzx/youtubegallery/event/listener.php
LINE: 144
CALL: phpbb\db\driver\factory->sql_query()
FILE: (not given by php)
LINE: (not given by php)
CALL: dmzx\youtubegallery\event\listener->index_modify_page_title()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 158
CALL: call_user_func()
FILE: [ROOT]/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/index.php
LINE: 231
CALL: phpbb\event\dispatcher->trigger_event()
For future updates, the following procedure is not necessary, you will be able to update your extension normally.noth wrote:so if we want to update from a previous version we have to get onto phpmyadmin and start deleting a row manually? what could possibly go wrong?
[i]yourprefix[/i]_video_cat
and [i]yourprefix[/i]_video
.[i]yourprefix[/i]_video_cat
and [i]yourprefix[/i]_video
.one user manually deleted the problem rowOk, I manually delete the row with ID 1 from the table phpbb_video_cat and then I was able to activate 1.0.2 (after upgrading from 1.0.0).
Honestly, I recommend not delete, you will lose the data.noth wrote:Vinny there is another way apparently
one user manually deleted the problem rowOk, I manually delete the row with ID 1 from the table phpbb_video_cat and then I was able to activate 1.0.2 (after upgrading from 1.0.0).
so do you agree that would also succeed? if so what would be the SQL QUERY to effect that manual delete please?
Galixte de EzCom wrote:Hi,
no it’s the opposite it’s for phpBB 3.1, see here: https://github.com/dmzx/youtubegallery.
Code: Select all
"display-name": "Youtube Videos Gallery",
"soft-require": {
"phpbb/phpbb": "3.1.*"
Galixte de EzCom wrote:Your archive was downloaded from the website of the author, if you download from Github repository is it the same case ? https://github.com/dmzx/youtubegallery/ ... master.zip
EDIT: it’s strange i have edited the both archives and it’s the same information in the composer.json file:
Code: Select all
"display-name": "Youtube Videos Gallery", "soft-require": { "phpbb/phpbb": "3.1.*"