webERP Forum

Full Version: user not accepted after install
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When doing a standard install, with company name weberp, database name weberp and user admin with default password, the install ends in a blank browser window.
After that, logging in is not possible, because using the standard admin user/pw combination (as set during install) I get a message 'incorrect password'. There is a www_users table in the database, with admin in it as well as a hashed password, so the database connection works.

How can I start to use it?
when bluntly entering the index.php into the address bar, i get:

ERROR Message Report : Security settings have not been defined for your user account. Please advise your system administrator. It could also be that there is a session problem with your PHP web server

The url is directed to Upgradedatabase.php

A log out and login does not work?

Running the UpgradeDatabase.php does not work?
I have had a similar issues and I typically find the session files on the server and clear them out.
yeah, i am also it same problem ...Huh
(11-20-2014, 12:00 AM)agaluski Wrote: [ -> ]I have had a similar issues and I typically find the session files on the server and clear them out.
I also facing the issue
I also have this problem. You can still use the installation, it appears that all except for passwords is working.

You can log in with the default 'admin' and password 'weberp', and access all/most functionality. It is only when you try to update the user password (through User Maintenance and/or Account Profile [from the top right corner by clicking username]) that the system rejects the modification. (Oh, if you have tried and failed to log in to many times the account will be blocked, you will need to unblock by updating `www_users`.`blocked` to 0, using a database administration package e.g. phpmyadmin or MySql Workbench or from the command line.

It appears to be a problem with password hashing, that causes the problem.

I have these entries in my php log.
[Fri Feb 06 12:15:24 2015] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /Library/WebServer/Documents/webERP/install/index.php on line 1259, referer: http://127.0.0.1/webERP/install/index.php

and

[Fri Feb 06 12:30:14 2015] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /Library/WebServer/Documents/webERP-dev/includes/session.inc on line 230, referer: http://127.0.0.1/webERP-dev/UserSettings.php
[Fri Feb 06 12:34:06 2015] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /Library/WebServer/Documents/webERP-dev/includes/session.inc on line 230, referer: http://127.0.0.1/webERP-dev/WWW_Users.ph...User=admin
[Fri Feb 06 12:47:37 2015] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /Library/WebServer/Documents/webERP-dev/includes/session.inc on line 230, referer: http://127.0.0.1/webERP-dev/WWW_Users.ph...User=admin
[Fri Feb 06 12:49:25 2015] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mcrypt_create_iv() in /Library/WebServer/Documents/webERP-dev/includes/session.inc on line 230, referer: http://127.0.0.1/webERP-dev/WWW_Users.php

This may be because of a php version (i.e. support for this function in php) or the php function definition has not been well defined or erroneous in the php code. I suspect a slight change in the way php handles some built in function call from the version of php that I am using to the version that the system was developed on (I am using OSX 10.6.8, which uses a bundled Apple version in a php...so library for the also bundled Apache server).

I intend to go through the code and find the function call for mcrypt_create_iv() (this is a php function and not a user defined function) and see if there is a simple fix to the issue, i.e. varying methods or syntax to call the function in php.

I only installed the system for the first time a few minutes ago, if I find a resolution I will let you know.

star
I'd say your PHP has not got mcrypt extension enabled.

http://php.net/manual/en/mcrypt.setup.php
(02-06-2015, 04:00 PM)phil Wrote: [ -> ]I'd say your PHP has not got mcrypt extension enabled.

http://php.net/manual/en/mcrypt.setup.php

Right you are. I was just about to post, how simple the answer is. Thanks.