The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adddb() stopped working after 11.25 ?

Discussion in 'cPanel Developers' started by lonea, Dec 25, 2009.

  1. lonea

    lonea Member

    Joined:
    Mar 19, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I'm using this to create a database

    <!--<cpanel Mysql="adddb($FORM{'db'})">-->

    ever since 11.25 update, it is not working. The adduser still work tho. Any idea why it stopped working ?

    This is a php script being loaded via direct cpanel login.

    Also have these loaded in the php

    <cpanel PHP="loadvars()">
    <cpanel PHP="loadparkeddomains()">
    <cpanel PHP="loadsubdomains()">
    <cpanel PHP="loaddocroots()">

    edit: so I found the error in the log file. But it is not making sense

    [2009-12-25 19:13:42 -0500] warn [mysql::adddb] Encountered error in mysql::adddb: xxxxxxxx_vdssi4 is an invalid Database name.
     
    #1 lonea, Dec 25, 2009
    Last edited: Dec 25, 2009
  2. lonea

    lonea Member

    Joined:
    Mar 19, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Problem solved.

    Seems like in 11.25 you don't have to specify the user prefix when adding a db. Apparently the API does it for you automatically.
     
Loading...
Similar Threads - adddb() stopped working
  1. Jeff P.
    Replies:
    1
    Views:
    26

Share This Page