#568 Long page name in wiki leads to fatal internal error

PHP_error
closed
Reini Urban
5
2014-07-30
2007-03-12
aljeux
No

In the wiki trying to create the page

[ceci est un nom de page vraiment tres tres tres tres tres tres tres tres tres tres tres tres tres tres tres tres tres trestres tres tres tres tres tres long]

(sorry, it's in french, but it's only an example to show you that when using a name too long).

lead to fatal internal error.

Fatal Error:

lib/WikiDB/backend/PearDB.php:1053: Error: wikidb_backend_peardb_pgsql: fatal database error

* DB Error: unknown error
* (INSERT INTO plugin_wiki2_page (id,pagename,hits) VALUES (2529,'ceci est un nom de page vraiment tres tres tres tres tres tres tres tres tres tres tres tres tres tr',0) [nativecode=ERROR: value too long for type character varying(100)])
*

Fatal PhpWiki Error

lib/WikiDB/backend/PearDB.php:1053: Error: wikidb_backend_peardb_pgsql: fatal database error

* DB Error: unknown error
* (INSERT INTO plugin_wiki2_page (id,pagename,hits) VALUES (2529,'ceci est un nom de page vraiment tres tres tres tres tres tres tres tres tres tres tres tres tres tr',0) [nativecode=ERROR: value too long for type character varying(100)])

Discussion

  • Reini Urban
    Reini Urban
    2007-06-03

    Logged In: YES
    user_id=13755
    Originator: NO

    Thanks. DB limitations obviously not caught by our class WikiPagename checks.

     
    • status: open --> closed
     
  • Fixed in 1.4.0