support

AbanteCart core v.1.2.6 Cannot modify header information-headers already sent

Started by yonghan, March 21, 2016, 07:20:22 AM

Previous topic - Next topic

yonghan

Hi admins,

I'm trying to use the upgrade my extension and I use both upgrade.sql and upgrade.php. I got this warning

2016-03-21 11:27:29 - warning:  AbanteCart core v.1.2.6 Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\testing\t126\extensions\xxx\upgrade.sql:36) in <b>C:\xampp\htdocs\testing\t126\core\engine\controller.php</b> on line <b>214</b>

I attach the upgrade process screenshot here. Did I missed something in the process? And is it possible to create a new table via upgrade.php? I tried that before but the table aren't created.Thanks

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

yonghan

I'll check it and will post again whether i succeed or not. Thanks abolabo

yonghan


abolabo

what about table prefix?
i see that you try to upgrade with prefix "ac_".
is your's the same?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens


abolabo

please describe what you did, i mean manual upgrade, step-by-step..
Still do not understand how you do this..
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

yonghan

I want to make an upgrade routine for my extension that involves sql queries and some php routines. This is what i have in my extension config file:


<upgrade>
        <sql>upgrade.sql</sql>
<trigger>upgrade.php</trigger>
    </upgrade>

abolabo

i guess you have a sql error.
Please check your compounded sql in sql editor like a Mysql Workbench (or phpMyAdmin)
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

yonghan


Forum Rules Code of conduct
AbanteCart.com 2010 -