This topic is locked
[SOLVED]

Security - PhpRunner V11.1

9/18/2025 11:21:57
PHPRunner General questions
G
GuilleSaa author

Using SQL Server 2012.
I'm setting up security in my project.
I'm assigning a table, username field, password field, and full name, as dynamic permissions.
When I try to go to Permissions, then Add admin user from database, the error message appears.

Obviously, the automatically generated security tables are empty.

Generic

TypeError
u.toLowerCase is not a function

TypeError: u.toLowerCase is not a function
at file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/main.ff114191d267e6f0.js:64045:84
at Array.map (<anonymous>:null:null)
at AddNewUserComponent.checkUser (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/main.ff114191d267e6f0.js:64045:73)
at file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/main.ff114191d267e6f0.js:64095:18
at Generator.next (<anonymous>:null:null)
at asyncGeneratorStep (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/vendor.b7aedbbb78b38393.js:218250:24)
at _next (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/vendor.b7aedbbb78b38393.js:218269:9)
at _ZoneDelegate.invoke (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:409:158)
at Object.onInvoke (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/vendor.b7aedbbb78b38393.js:97748:25)
at _ZoneDelegate.invoke (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:409:46)
at Zone.run (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:194:35)
at file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:1269:28
at _ZoneDelegate.invokeTask (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:436:171)
at Object.onInvokeTask (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/vendor.b7aedbbb78b38393.js:97737:25)
at _ZoneDelegate.invokeTask (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:436:54)
at Zone.runTask (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:240:37)
at drainMicroTaskQueue (file:///C:/Users/Guille/AppData/Local/PHPRunner111/app-11.1.43741/resources/wizard/polyfills.2e8b6e73d89c463d.js:607:23)

0 9/18/2025

It looks like you're encountering a JavaScript error while trying to add an admin user in PHPRunner. The error message indicates that there is a TypeError related to the toLowerCase function, which suggests that a variable expected to be a string is not.

Here are some steps you can take to troubleshoot and potentially resolve this issue:

  1. Check Database Connection:
    Ensure that your database connection settings in PHPRunner are correctly configured. Make sure you can connect to your SQL Server database and that the user has the necessary permissions to access the security tables.


  2. Verify Security Table Structure:
    Since the error suggests the security tables are empty, verify that you have created the necessary security tables in your database. You should have tables for users, roles, etc. Ensure that the fields you are referencing (username, password, full name) exist and are of the correct data type (e.g., VARCHAR or NVARCHAR for strings).


  3. Check Input Fields:
    Make sure that the fields you are using for username and password are properly set up in PHPRunner. Sometimes, if the fields are misconfigured (e.g., not set as text), it can lead to such errors.


  4. Review JavaScript Console:
    Open the JavaScript console in your web browser (usually F12 or right-click > Inspect, then navigate to the Console tab) to see if there are any additional error messages or warnings that might provide more context about what is going wrong.


  5. Update PHPRunner:
    Make sure you are using the latest version of PHPRunner. If you're on an older version, consider updating to see if the issue has been resolved in a newer release.


  6. Check for Custom Code:
    If you have added any custom JavaScript code to your PHPRunner project, review it to ensure that nothing is interfering with the default functionality related to user permissions.


  7. Contact PHPRunner Support:
    If the problem persists after trying the above steps, you might want to reach out to PHPRunner support. They can provide specialized assistance and may be aware of specific issues related to your version of the software.



By following these troubleshooting steps, you should be able to identify and resolve the issue causing the error when adding an admin user.