Loading...
 
Skip to main content

can't create new structure, because structlib has problem (reopen bug #1649)

Status
Closed
Subject
can't create new structure, because structlib has problem (reopen bug #1649)
Version
2.x
3.x
Category
  • Error
Feature
Wiki Structure (book & table of content)
Resolution status
Duplicate
Lastmod by
Xavi (as xavidp - admin)
Rating
(0)
Description

Have had this issue since 1.9.10.1 and it's still there in all subsequent versions even though the previous bug report detailing the same issue (#1649) says it's fixed.

The posted solution may work - although the Comments section of that bug report details a differing fix.
Would be good to get this fixed in the codebase rather than manually adding a fix to each new release.

If you need further info from me - please email nickallentbwa-at-gmail.com

When I try to add a page to a structure, I get this error:
===================
An error occured in a database query!

Context:
File tiki-edit_structure.php
Url tiki-edit_structure.php
Query:
insert into `tiki_structures`(`parent_id`,`page_id`,`page_alias`,`pos`) values(?,?,?,?)
Values:
0 407
1 116
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('407','116','','1')
===================

Workaround
Xavi: works for me in Tiki 3.1. Please re-test.
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2092
Created
Wednesday 22 October, 2008 09:09:57 UTC
by Unknown
LastModif
Sunday 18 June, 2017 23:09:01 UTC


Show PHP error messages