Loading...
 
Skip to main content

Architecture / Installation


Error while creating Structure as Admin

I have tried to create a structure for the Wiki several times now following the instructions on the following link:

http://twbasics.keycontent.org/tiki-index.php?page=Creating%20Structures&structure=TikiWiki%20for%20Smarties

An example of the structure was like:

Mission
Collaborative Applications
SharePoint POC
Use Cases Patterns
Tools

An ideas....


An error occured in a database query!

Context:
File tiki-admin_structures.php
Url tiki-admin_structures.php
Query:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values(?,?,?,?)
Values:
0 0
1 14
2
3 1
Message:
Field 'structure_id' doesn't have a default value
Built query was probably:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values('0','14','','1')


I am using Tiki Wiki v2.2 and it's a new install with the theme tikipedia being used. I'll try another theme and let you know if there is any correlation between the two in my next post.

I have tried twist, tikineat and default with the following results:

An error occured in a database query!

Context:
File tiki-admin_structures.php
Url tiki-admin_structures.php
Query:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values(?,?,?,?)
Values:
0 0
1 16
2
3 1
Message:
Field 'structure_id' doesn't have a default value
Built query was probably:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values('0','16','','1')

And the following:


An error occured in a database query!

Context:
File tiki-admin_structures.php
Url tiki-admin_structures.php
Query:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values(?,?,?,?)
Values:
0 0
1 17
2
3 1
Message:
Field 'structure_id' doesn't have a default value
Built query was probably:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values('0','17','','1')

Regards,


I was able to get this working by setting the structure_id field to accept Nulls. Not the best thing to do I am sure but at least it's working now. I'll look to the experts to resolve this if they don't think it should be set to Nulls = Yes. If it is not suppose to except it than I need to know what the default value is or why its not placing a value in there when I have supplied one in the form.

Regards....


I noticed that the field structure_id is defined as an INT in the table but the example in Smarties describes defining a CHAR or Text value as the structure_id. Is there an issue here? Plus it says in the error that the stucture_id doesn't have a default value. Is this suppose to be an autoincrement field?

Please help on getting this resolve as I am trying to get a preview ready for our CIO and can't afford these types of delays.

Regards....

Sorry, but I was unable to duplicate your issue. I installed a fresh 2.2 (directly from SVN) and was able to create a new Structure, using your exact page names:

Copy to clipboard
Mission Collaborative Applications SharePoint POC Use Cases Patterns Tools


It sounds like you might have some DB issues. When you installed Tiki, after running the install script, were there any DB errors?


HTH,

-RickQuestion
Need more help? Try TikiWiki for Dummies SmartiesQuestion or read my Tiki Blog or visit my UserPage