Clicking creating a database without a name fails with wrong error

Issue #152 resolved
Christopher Kramer created an issue

Originally reported on Google Code with ID 152

What steps will reproduce the problem?
Click "Create" in the sidebar to create a db without entering a name.

What is the expected output? What do you see instead?

Expected: An error that I did not enter a name.
Instead: 
Warning: file_get_contents(./): failed to open stream: No such file or directory in
.../phpliteadmin.php on line 780
There was a problem setting up your database, ./. An attempt will be made to find out
what's going on so you can fix the problem more easily.
Checking supported SQLite PHP extensions...

Reported by crazy4chrissi on 2012-11-21 18:57:19

Comments (7)

  1. Christopher Kramer reporter
    Ähm, affected version: current svn version of 1.9.4
    

    Reported by crazy4chrissi on 2012-11-21 18:57:54

  2. Christopher Kramer reporter
    Okay, I catched the error. No error messages appears now. I think "creating" error messages
    up there is currently done in an not-perfect way. Maybe we should improve this someday
    while adding an error message for this here.
    

    Reported by crazy4chrissi on 2012-11-21 19:46:30 - Status changed: Started

  3. Christopher Kramer reporter
    This is almost fixed, having an error message is only a low-priority enhancement.
    

    Reported by crazy4chrissi on 2013-03-01 00:18:15 - Labels added: Type-Enhancement, Priority-Low - Labels removed: Type-Defect, Priority-Medium

  4. dreadnaut
    I'd prefer the "create new database" form to have its own page, leaving just a link
    in the left column (like in PMA). It would then be easier to have a proper descriptive
    text and show error messages.
    

    Reported by dreadnaut on 2013-03-02 16:27:57

  5. dreadnaut
    It could also be a testbed for a more structured action->result->output->page rendering
    pipeline :-p
    

    Reported by dreadnaut on 2013-03-02 17:31:59

  6. Log in to comment