Help Center

Read this first

Asking for help

Before contacting us for support, please read the following carefully:

  • The answer to your problem may be found here, or in the tutorials, or in the documentation.
    Please take the time to look for it before contacting us.
  • To help you we need to understand and be able to reproduce your problem.
    PHP CRUD Generator doesn't have any known bugs so far, and the problems encountered are mostly due to the configuration of your server, the structure of your database, or other parameters related to your project.

    This is why it is essential to provide us with all the information we may need:

    • FTP access
    • URL of the CRUD Generator
    • Admin URL
    • Login and passwords
    • Access to server administration if needed (cPanel)

    So please contact us and send us the necessary information, we will do our best to help you quickly and efficiently.

    If you refuse for any reason to give us the necessary information, we may not be able to help you effectively. In this case, no refund request will be accepted, except in special cases.

PHP errors and server configuration problems

Any PHP program can generate errors that depend on your server: PHP version, activated extensions, definition of global variables, ...

Here are a few recommendations that will help you in many cases:

  1. Turn on PHP error display

    • Find and edit your php.ini file
    • Find the display_errors directive and enable it
    • Refresh your page to see the error message, that will help to understand where the error come from.
  2. Blank page / Paths & URLs issues

    First turn display_errors On (see #1 above)

    PHPCG uses some constants to detect the paths & urls leading to PHPCG folders.
    A test file is available to view & debug your server values:

    1. Open install/server-test.php in your code editor
    2. L.15: Replace 'AUTHORIZE', false with 'AUTHORIZE', true to disable the protection
    3. Open the file in your browser from your PHP server

    You'll see the main constants, the expected values descriptions and the real values from your server.

    The solution will be to review your server settings, or contact us if you need more help.

  3. Test & Enable the PHP cUrl extension if needed

    PHPCG requires cUrl extension to be enabled.

    Open install/curl-test.php in your browser.
    If you don't see the success message you have a problem with the cUrl extension.
    The message displayed will tell you what's wrong and how to solve it.

    The solution can be to enable your cUrl extension from php.ini, or setup your firewall, or a message returned by cUrl.

  4. Database connection

    Here's how to test your database connection settings:

    1. Open install/db-connection-test.php in your code editor
    2. Replace 'host', 'user', 'pass', 'dbname', 'dbtable' with your connection settings
    3. Open the file in your browser from your PHP server

    You'll see the query sent to your database.
    If the connection is successful, you'll see a list with your table columns.
    Else, your connection settings are probably wrong, try to change them.

    Also check your firewall, which may be blocking access.

Licensing & Registration

PHP CRUD Generator is protected by a license system: 1 license = 1 domain + any subdomain of that domain.

The license is a one-time activation: you enter your license key once, on each domain, and the generated code never requires any other registration.

You get your license key in your Polar customer portal or in the order confirmation email sent after your purchase.

How to activate

  1. Copy your license key from your Polar customer portal or from your order confirmation email.
  2. Open /install/do-install.php in your browser and go to the License activation step of the installation wizard.
  3. Paste your license key and the email address used at purchase, then submit the form.
Your development server and your production server must be activated separately - each uses one of the 2 activations of your license.
If you move your project to another domain, deactivate the old domain first from your Polar customer portal - then run the activation again on the new domain.

License checks

After activation the installation performs automatic license checks, at most once every 24 hours, to make sure that your license is still valid.

If your server can't reach the license server for a few checks, a grace period allows the installation to keep working before forms are disabled. See Your server cannot reach the license server.

Troubleshooting: you can display the current license state on any page by adding define('PHPFB_LICENSE_DEBUG', true); before the first new Form() call in your script.

Installation errors

Connection to remote server can't be established

The license system tries to send a cUrl request to the license server (api.polar.sh), and the request fails on your server.

  1. Open /install/do-install.php in your browser and retry the activation.
    The installer will give you an explicit error message explaining why the connection failed.
  2. Copy / Paste the error message in a Google search, you'll find many people who had the same problem before you and will explain how to fix it.

These issues are related to your server configuration (often firewall restrictions, or port 443 is closed, ...).
There's nothing specific and nothing wrong with PHPCG. Your server must be correctly configured to send cUrl requests.

If you are on shared hosting you must contact your host and ask them to unblock the cUrl requests


Your activation limit is reached

Unfortunately, installation failed because of this reason: Your activation limit is reached, or this domain is already bound to another key.

Each license allows 2 simultaneous activations - for example 1 for your development server, the other on your production server.

You can reinstall anywhere & at any time, but you can't have more than 2 activations at the same time.

To free a slot, open your Polar customer portal and deactivate the domain you no longer use. You don't need to uninstall anything 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.


The FollowSymLinks option is not allowed in your Apache server configuration.

This directive is used in /admin/.htaccess

To solve this issue:

  1. Open /admin/.htaccess in your code editor
  2. Replace Options +FollowSymLinks -MultiViews with # Options +FollowSymLinks -MultiViews

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.
    Solution
    open /generator/generator.php in your browser and generate the admin files.
  2. Cause
    Installation in a subfolder
    Solution
    1. open /admin/.htaccess in your code editor
    2. add your subfolder to the RewriteRule.
      For instance: RewriteRule . /your-folder/admin/index.php [QSA,L]
  3. Apache server - Cause
    Your server is misconfigured & URL rewriting is not allowed.
    Solution
    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
  4. NGINX or Microsoft IIS server - Cause
    Your server doesn't use the .htaccess, so htaccess URL rewriting has no effect
    Solution
    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 xxx 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 authtentication module, everything is explained here:

How to update / reinstall the User Authentification Module

Error while recording when posting a form

You've got to show the SQL query on screen to understand why it failed.

Please report to this tutorial page for solution & detailed explanations.

Database connection errors

Warning: mysqli_connect(): (HY000/2002)

Warning: mysqli_connect(): (HY000/2002): Can’t connect to MySQL server [...]

The MySQL error #2002 happens when the program fails to connect to your MySQL database.

Most of the time, the connection failure is due to incorrect credentials.

It is also possible that the MySQL user does not have sufficient rights to access the database.

To help you set up and test your MySQL connection, a test file is available.

  1. Open install/db-connection-test.php in your code editor
  2. Replace 'host', 'user', 'pass', 'dbname', 'dbtable' with your connection settings and a table name from your database.
  3. Open the file in your browser from your PHP server

You'll see the query sent to your database.
If the connection is successful, you'll see a list with your table columns.
Else, your connection settings are probably wrong, try to change them.

Also check your firewall, which may be blocking access.


The program doesn't use the database connection I registered / Database connection required

PHPCG stores the database connection settings in class/database/db-connect.php. This single file can hold the connection settings of up to two servers (for example your localhost and your production server), and the program automatically uses the settings of the server it runs on.

To know which server it runs on, PHPCG computes a server fingerprint from the machine hostname and the installation path. The settings matching this fingerprint are used - there is no fallback: if no connection matches, the application stops on a recovery screen rather than silently connecting to the wrong database.

If you see the Database connection required screen, the current server has no connection registered. This happens when the installation has been moved or its folder renamed, when a container has been rebuilt, or on a new deployment.

What to do:

  1. Click the Run the installer button on the recovery screen, or open /install/do-install.php in your browser.
  2. The installer lists the registered connections (2 max) and prefills the existing settings - you only confirm them. Nothing is deleted.
  3. Confirming registers the current server: the connection settings are added to db-connect.php and the application works again immediately.
Do not edit the connections in db-connect.php manually: they are managed by the installer, which overwrites them on each (re)configuration.

PHP Notice: ... | PHP Warning: ...

When you make some changes in your database structure, for instance add / rename or delete some tables or fields, you'll see some PHP NOTICE or WARNING messages.

That's ugly and a bit frightening, but fortunately you can ignore all of them, and nothing is broken in the system.

It just means that the generator data must be refreshed.

This tutorial explains in detail how to register changes in your database structure.

Call to undefined function generator\is_countable()

The PHP function is_countable() is available since PHP version 7.3.

If you encounter this error it means that your PHP version older than version 7.3

Updating to a PHP version above 7.3 will solve the problem.

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.

Other errors

The user configuration file doesn't exist at [root]conf/user-conf.json

PHPCG detects the path to the root directory of the server and stores it in a constant named ROOT.

This operation is performed in conf/conf.php

There seems to be a problem with the values detected on your server. To solve this:

  1. Check the path to conf/conf.php ; if it contains uppercase characters replace them with lowercase letters.
  2. If you still need help contact us and send us your FTP access and your url.

Fatal error: class finfo not found

PHP finfo extension is missing on your server.

Solution: enable the PHP finfo extension in your php.ini or install it.

License errors & messages

The following messages may be displayed by the generated forms instead of the HTML, when the license check fails.


PHP CRUD Generator is not activated on this domain

PHP CRUD Generator is not activated on this domain.

Open install/do-install.php in your browser and enter your license key to activate it. If you just moved your project from another domain, this is expected - register it here to use it on this domain.


Your license is registered for another domain

Your license is registered for another domain.

This project was activated on another domain. Open install/do-install.php on this domain and enter your license key to use it here. Activation limit reached? Deactivate the old domain first in your Polar customer portal.


This domain does not match your PHP CRUD Generator license

This domain does not match your PHP CRUD Generator license.

A license file is present here, but it was registered for another domain - copying the file does not transfer a license. Open install/do-install.php on this domain and enter your license key to register it.


Your license key is invalid

Your license key is invalid.

The license server doesn't recognize the key entered in the activation form. Make sure you copied the full key from your Polar customer portal or from your order confirmation email, without any extra character or trailing space, then activate again.


Your license is no longer active

Your license is no longer active.

Your license key has been revoked on the license server (possible causes: refund or manual deactivation). If you believe this is a mistake, contact us.


Your license could not be validated

Your license could not be validated.

Your license key may have reached its activation limit. Manage your activations in your Polar customer portal.


Your server cannot reach the license server

Your server cannot reach the license server.

Forms were disabled after several failed attempts to contact it. Common causes & fixes:

  • Your firewall blocks outgoing requests: allow outgoing HTTPS requests to api.polar.sh (port 443).
  • curl and openssl are not enabled in your php.ini: enable them.
  • The license server is temporarily unreachable: wait a few minutes and reload the page - the validation retries automatically.

Generic license error

This form cannot be displayed. Please check your PHP CRUD Generator license.

This generic message is displayed when an unexpected license error occurs. Check the specific cases above; if none matches, contact us with the error details.


PHP session settings error

PHP session configuration error: session settings don't allow to start a session.

PHP sessions are required to display and process the forms. This error is displayed when PHP fails to start a session, usually because of a session cookie setting that doesn't match your server setup:

  • If your site runs on HTTP (not HTTPS), make sure that session.cookie_secure is disabled (=0 or Off) in your php.ini or .htaccess.
  • Conversely, if your site runs on HTTPS, cookies can be flagged with the Secure attribute in your .htaccess to improve security.
  • Check also session.cookie_domain and session.cookie_path: they must match your domain (or remain empty for the domain default).

Once fixed, reload the page: PHP will start the session and display the form.

Contact us

We usually respond within a maximum of 24 hours

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