Cannot create user on setup

Hi, I have just installed the latest version and have gone through all the set up process have set and connected to database etc. When I get to create a user page and fill all the information in it simply reloads the page, I have checked the tables in PHP admin and it does not create user meta. any ideas? Thanks

Did you filled all fields? Maybe a problem with an error message that won’t be displayed correctly.

Yes all the fields are field in I am working on a subdomain does it make any difference?

The following errors are shown on the console when I click continue

Failed to load resource: the server responded with a status of 404 (Not Found) sub.mydomain.com/assets/default/js/libs/modernizr-2.8.2.js

Failed to load resource: the server responded with a status of 403 (Forbidden) sub.mydomain.com/setup/create_user

Uhm you should not get the first error, it was fixed with the latest release. Which version do you use?

I am using the latest version v1.1.0

Pretty weird.
Which systems do you use? Ubuntu, Cent, Windows? Do you have access to the server logs?

Yeah I can’t work it out I got rid of 404 by renaming the file and that seems to have cleared the errors but every time I click continue it just reloads the page I am running a Linux server and unfortunately I cannot access the logs.

Correction still getting the 403 error

Hmm… I can’t reproduce this error on my testing systems and I can’t imagine why the setup would throw an 403 error.

would it be because I am using a sub domain?

Or anyway of adding users manually?

No, a subdomain should not affect the application. But there’s no simple way to add a user manually because of the password.

Ok I will try a few options. Thanks

This is reproducible using namecheap shared hosting:

  1. create folder inside myurl.com named invoice

  2. upload Version 1.1.2 into myurl.com/invoice

  3. create empty database " invoice ", assign user/password with all priv. to database “invoice”.

  4. change .htacces file in the root of myurl.com/invoice from " RewriteBase / " to “RewriteBase /invoice”.

  5. hit the setup page with myurl.com/invoice/setup --> all checks pass, input database credentials, input username/e-mail/location info, press “done” (or the equivalent button, I forgot what it said).

  6. You are taken to a 404 page on myurl.com. When trying to log back into myurl.com/invoice , you use the credentials given on the user creation page but it continuously refreshes the page. Not letting you login.

Note: Namecheap is a shared hosting plan and they have confirmed that the webserver meets the minimum requirements for InvoicePlane.

Which Version do you use? The latest v1.1.2?
Just an idea: is the mcrypt library installed and activated in Namecheap?

Yes, I copied and pasted the requirements to the rep and they confirmed.

Update: this is now working. What I had to do:

  1. after the failed user setup in the last post, I had to: delete the database ( but I kept the user). re-create an empty database and assign that user to the database. All using Cpanel.

  2. I went into /application/config/database.php and deleted the authentication details for the database and the hostname.

  3. without modifying anything else from my previous post, I hit myurl.com/invoice/setup and went through the process again filling out all fields in the user creation (just putting “none” in the fields that were not needed).

  4. Clicked submit and now I am looking at an InvoicePlane dashboard =)

1 Like

Pretty weird that it works with putting ‘none’ into not needed fields…
Could you please try to find out which MySQL server version Namecheap is running?

The MySQL Server Version is 5.5.34

Now an issue that is being faced is unable to create another user, either admin or guest. I am being met with a 404 page. Here is the log snippet. Everything from the beginning to DEBUG - 2015-03-11 23:30:29 --> Total execution time: 0.0443 is for trying to create a guest user. Below that is when trying to create another admin.

DEBUG - 2015-03-11 23:30:29 --> Config Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Hooks Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Utf8 Class Initialized
DEBUG - 2015-03-11 23:30:29 --> UTF-8 Support Enabled
DEBUG - 2015-03-11 23:30:29 --> URI Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Router Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Output Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Security Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Input Class Initialized
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> XSS Filtering completed
DEBUG - 2015-03-11 23:30:29 --> Global POST and COOKIE data sanitized
DEBUG - 2015-03-11 23:30:29 --> Language Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Language Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Config Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Loader Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Controller Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Ajax MX_Controller Initialized
DEBUG - 2015-03-11 23:30:29 --> Config file loaded: application/config/invoice_plane.php
DEBUG - 2015-03-11 23:30:29 --> Session Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: string_helper
DEBUG - 2015-03-11 23:30:29 --> Session routines successfully run
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: url_helper
DEBUG - 2015-03-11 23:30:29 --> Database Driver Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: form_helper
DEBUG - 2015-03-11 23:30:29 --> Form Validation Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: number_helper
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: pager_helper
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: invoice_helper
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: date_helper
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: redirect_helper
DEBUG - 2015-03-11 23:30:29 --> Model Class Initialized
DEBUG - 2015-03-11 23:30:29 --> File loaded: application/modules/settings/models/mdl_settings.php
DEBUG - 2015-03-11 23:30:29 --> Model Class Initialized
DEBUG - 2015-03-11 23:30:29 --> Language file loaded: language/english/ip_lang.php
DEBUG - 2015-03-11 23:30:29 --> Helper loaded: language_helper
DEBUG - 2015-03-11 23:30:29 --> File loaded: application/controllers/../modules/layout/controllers/layout.php
DEBUG - 2015-03-11 23:30:29 --> Layout MX_Controller Initialized
DEBUG - 2015-03-11 23:30:29 --> File loaded: application/modules/clients/models/mdl_clients.php
DEBUG - 2015-03-11 23:30:29 --> Model Class Initialized
DEBUG - 2015-03-11 23:30:29 --> File loaded: application/modules/users/views/partial_user_client_table.php
DEBUG - 2015-03-11 23:30:29 --> Final output sent to browser
DEBUG - 2015-03-11 23:30:29 --> Total execution time: 0.0443
DEBUG - 2015-03-11 23:33:59 --> Config Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Hooks Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Utf8 Class Initialized
DEBUG - 2015-03-11 23:33:59 --> UTF-8 Support Enabled
DEBUG - 2015-03-11 23:33:59 --> URI Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Router Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Output Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Security Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Input Class Initialized
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> XSS Filtering completed
DEBUG - 2015-03-11 23:33:59 --> Global POST and COOKIE data sanitized
DEBUG - 2015-03-11 23:33:59 --> Language Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Language Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Config Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Loader Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Controller Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Users MX_Controller Initialized
DEBUG - 2015-03-11 23:33:59 --> Config file loaded: application/config/invoice_plane.php
DEBUG - 2015-03-11 23:33:59 --> Session Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: string_helper
DEBUG - 2015-03-11 23:33:59 --> Session routines successfully run
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: url_helper
DEBUG - 2015-03-11 23:33:59 --> Database Driver Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: form_helper
DEBUG - 2015-03-11 23:33:59 --> Form Validation Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: number_helper
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: pager_helper
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: invoice_helper
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: date_helper
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: redirect_helper
DEBUG - 2015-03-11 23:33:59 --> Model Class Initialized
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/settings/models/mdl_settings.php
DEBUG - 2015-03-11 23:33:59 --> Model Class Initialized
DEBUG - 2015-03-11 23:33:59 --> Language file loaded: language/english/ip_lang.php
DEBUG - 2015-03-11 23:33:59 --> Helper loaded: language_helper
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/controllers/../modules/layout/controllers/layout.php
DEBUG - 2015-03-11 23:33:59 --> Layout MX_Controller Initialized
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/users/models/mdl_users.php
DEBUG - 2015-03-11 23:33:59 --> Model Class Initialized
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/users/models/mdl_user_clients.php
DEBUG - 2015-03-11 23:33:59 --> Model Class Initialized
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/clients/models/mdl_clients.php
DEBUG - 2015-03-11 23:33:59 --> Model Class Initialized
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/custom_fields/models/mdl_custom_fields.php
DEBUG - 2015-03-11 23:33:59 --> Model Class Initialized
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/users/views/partial_user_client_table.php
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/clients/views/jquery_client_lookup.php
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/users/views/modal_user_client.php
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/layout/views/header_buttons.php
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/layout/views/alerts.php
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/users/views/form.php
DEBUG - 2015-03-11 23:33:59 --> File loaded: application/modules/layout/views/layout.php
DEBUG - 2015-03-11 23:33:59 --> Final output sent to browser
DEBUG - 2015-03-11 23:33:59 --> Total execution time: 0.0511

I had a similar problem what i did is i created a user thru the database under ip_users then logged in normaly since i would only make the installation once…