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:
if (!filter_var($root_url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED)) {
// $root_url is not a valid URL, registration will fail
}
To solve this you've got to install on a valid url.
- You may have a problem with PHP cUrl. See "Connection to remote server can't be established"
Connection to remote server can't be established
The licensing system tries to send a cUrl request, and the request fails on your server.
- Open
/install/curl-test.php
in your browser.
The script will try to connect to the licensing system, it should fail because cUrl previously failed with the installer, but it'll give you an explicit error message.
- 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
License is not installed yet or corrupted
You have to clean up your installation then run the installer again.
Script is already installed (or database not empty)
You're trying to install but the license table (typically user_data
) already exists.
- open
/generator/generator.php
in your browser
-
in the "Table" section, Choose a table & submit.
- if it shows the Build Read List & there's no error message, PHPCG is already installed properly, you can go on.
- else if you see the error "License is not installed yet or corrupted.", reinstall PHPCG.
An unknown error occurred (probably database failure ...)
You're trying to install on a domain which is already registered in the licensing system.
- open
/generator/generator.php
in your browser
-
in the "Table" section, Choose a table & submit.
- if it shows the Build Read List & there's no error message, PHPCG is already installed properly, you can go on.
- 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.
FollowSymLinks not allowed
The FollowSymLinks option is not allowed in your Apache server configuration.
This directive is used in /admin/.htaccess
To solve this issue:
- Open
/admin/.htaccess
in your code editor
- Replace
Options +FollowSymLinks -MultiViews
with # Options +FollowSymLinks -MultiViews