![]() |
Product give error message
I'm not sure what causes it. The first time it go though, but when i re-imported the code, it gives me error , but if I change the productid to something else then it will go through.
Here is the database error message. Code:
UPDATE template SET and here is the product code: PHP Code:
|
aparently the IF NOT EXISTS is not doing its job
$vbulletin->db->hide_errors(); $vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX ."data_name (id int(4) NOT NULL auto_increment, table1 varchar(120) NOT NULL, table2 varchar(100)NOT NULL, PRIMARY KEY (id))"); $vbulletin->db->show_errors(); thats how i would run the table.. but also noticed the install code version is 4.0 but your product code is 1.0 im quite sure the the product code needs to be same version or higher to run the install code, other way around the product ignores the install code higher than the product version. try it, its not sure it will work since the IF NOT EXISTS dont check, it should if the table exist then skip the step. |
The error has nothing to do with table creation, its a duplicate key error on updating a record in the template table.
Please post the actual product code, since what you posted above clearly isnt it. |
actual code has updated. Thanks
|
could anyone helps? Thanks
|
I cant see anything wrong with it, nor can i replicate your issue. I can import it multiple times with no errors.
|
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|