|
Multiple installations
|
|
05-21-2010, 04:26 AM
(This post was last modified: 05-21-2010 05:53 PM by caravan_saray.)
Post: #21
|
|||
|
|||
|
RE: Multiple installations
BTW I experience the same problem when trying to add Static Pages, symptoms are exactly the same. Also, after inserting sample article directly into database through phpMyAdmin that article is listed in Articles tab and I can update its content using Kwikcontent Admin, but it still does not let me add new articles.
|
|||
|
05-21-2010, 08:58 PM
Post: #22
|
|||
|
|||
|
RE: Multiple installations
hmm Is this a primary domain or a multidomain added though a single installation.
Those pages all extend the DbTable classes in includes/_classes.php which does that data saving part. It should be getting to the createNew function in that class and if the query errors it should die off with an error message. |
|||
|
05-21-2010, 11:25 PM
(This post was last modified: 05-21-2010 11:27 PM by caravan_saray.)
Post: #23
|
|||
|
|||
|
RE: Multiple installations
It does not insert data on both primary and secondary domains. I understand about DBTable class and already tried to read through source codes, looks lik the issue is in the database file format or article_edit.php codes discrepancy. Could you post here a list of Article table fields that you currently have in your working version, and also please email me you version of article_edit.php and includes/_classes.php so I could compare with mine.
|
|||
|
05-22-2010, 03:02 AM
Post: #24
|
|||
|
|||
|
RE: Multiple installations
Here is the sample SQL of an article along with the table
Code: CREATE TABLE `testcom_article` (The files should be the same I am using the same ones that your site has on http://kwikcontentdemo.com and my other sites. |
|||
|
05-22-2010, 06:41 PM
(This post was last modified: 05-23-2010 05:28 AM by caravan_saray.)
Post: #25
|
|||
|
|||
|
RE: Multiple installations
Modified createNew method so that it prints out SQL command before execution. Here is the SQL it is trying to execute in createNew after article_edit.php submit:
INSERT INTO article (key_id) VALUES ('1') Tried to execute this command in MyPHPAdmin and got this error: #1364 - Field 'article_teaser' doesn't have a default value No wonder it does not insert new article. Would you update your installation SQL script to straight this out or at least provide notice in installation instruction, it turned out that in newer MySQL versions you have to tweak sql-mode in my.ini for MySQL server to treat message #1364 as a warning not error. My suggestion is to make installation SQL compliant with strict MySQL requirements. Also I remember I had same problem with 'domain' table when I was trying to run you installation SQL, some default values were missing in INSERT statement and MySQL gave me the same error, I had to rewrite that statement to make it compliant. Another thought, lack of SQL error handling code in DbTable methods creates a lot of confusion with SQL errors debug. |
|||
|
05-23-2010, 04:21 AM
Post: #26
|
|||
|
|||
|
RE: Multiple installations
Resent the KwikContent script with all the updates to your email.
Basically for the sql issue took out the NOT NULL statement for all the fields in the .sql files |
|||
|
05-23-2010, 05:34 AM
Post: #27
|
|||
|
|||
|
RE: Multiple installations
Thanks for the update. I already fixed the issue by modifying table properties in MyPHPAdmin.
|
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help


