Help Center

Installation errors

Cannot connect to licensing server

  • You probably entered a wrong purchase code.

    Double-check that you didn't paste the purchase code with a trailing space.

  • The licensing system has to validate your installation URL, which must be a valid URL.

    The validation functions is the following one:

        // $root_url is not a valid URL, registration will fail

    To solve this you've got to install on a valid url.

Script is already installed (or database not empty)

  1. open /generator/generator.php in your browser
  2. in the "Table" section, Choose a table & submit.

    1. if it shows the Build Read List & there's no error message, PHPCG is already installed properly, you can go on.
    2. else if you see the error "License is not installed yet or corrupted.", reinstall PHPCG.

The maximum number of allowed PHP CRUD Generator installations reached.

Unfortunately, installation failed because of this reason: The maximum number of allowed PHP CRUD Generator installations ([x] installation(s) total) reached.

Each Regular License allows 2 installations - 1 for your development server (localhost), the other on production server.

You can reinstall anywhere & at any time, but you can't have more than 2 simultaneous installations activated.

You have to uninstall PHPCG before reinstalling elsewhere.

Error - Not Acceptable!

Not Acceptable! You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [...]

This error is generated by Apache mod_security

It means that your server Firewall (mod_security) is configured to block some requests for security reasons.

You have to allow the request manually, and the correct way to do this depends on your server itself.

A Google search may help.

If not, contact your server provider and ask for help. Give him the datetime you encountered the error and the url, it'll help him to help you.

Admin panel errors

Error 404 (Page Not Found)

There may be different causes:

  1. Cause
    You're trying to open a READ list or a form that you didn't create yet.
    open /generator/generator.php in your browser and generate the admin files.
  2. Apache server - Cause
    Your server is misconfigured & URL rewriting is not allowed.
    1. open your Apache configuration file (httpd.conf)
    2. find your project directory directives (<Directory "/var/www/html/phpcrud"></Directory>)
    3. change the AllowOverride directive to All (AllowOverride controls what directives may be placed in .htaccess files)
    4. restart Apache
  3. NGINX | Microsoft IIS server - Cause
    Your server doesn't use the .htaccess, so htaccess URL rewriting has no effect
    Add the rewriting rules in your configuration file

Table not installed with the authentication module

The xxx table is used in the admin panel but was not installed with the authentication module.
The authentication module must be reinstalled to add the hatches_by_model table in profile rights management.

This happens when you installed the authentication module (therefore you have selected the MySQL tables that will be used in the admin),
then you've added another table to your MySQL database / admin panel.

It is obviously more appropriate (and more logical) to install the auth module only after your tables have all been created in your MySQL database.

However, if you need to add one or more tables to the auth. module, you have 2 ways to do this:

1st solution:
  1. Disable the authentication module from the CRUD Generator
  2. Once disabled, you can uninstall it.
  3. Then reinstall.
2nd solution:
  1. Open your users_profiles table in phpmyadmin
  2. add the 4 fields corresponding to your table:
    • read_table
    • update_table
    • create_delete_table
    • constraint_query_table
    where table is the name of your DB table.

Then your table will be recognized & added to the auth. Module (Secure PHP class)

Update errors

Update failed

  1. The automatic updater has to write in some of the PHPCG folders/subfolders:

    admin, class, conf, documentation, generator, install, vendor

    Try to increase your CHMOD (0755 should be ok)

  2. Open generator/update/update.log log file to see details about the failure.

Contact us

We usually respond within a maximum of 24 hours

We'll often ask for an FTP access and/or your purchase code - if possible send them to us, we'll both save time.