Author Topic: AbanteCart core v.1.2.6 Cannot modify header information-headers already sent  (Read 3344 times)

yonghan

  • Guest
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

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1768
  • Karma: +246/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
please check is output buffering enabled on your testcase. See http://php.net/manual/en/outcontrol.configuration.php for details
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

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

yonghan

  • Guest
Ouutput buffering is enabled in my testcase.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1768
  • Karma: +246/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
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

yonghan

  • Guest
I'm using the ac_ prefix.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1768
  • Karma: +246/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
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

  • Guest
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:

Code: [Select]
<upgrade>
        <sql>upgrade.sql</sql>
<trigger>upgrade.php</trigger>
    </upgrade>

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1768
  • Karma: +246/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
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

  • Guest
I will recheck my sql queries again. Thanks abolabo.

 

Powered by SMFPacks Social Login Mod