525 comments found.
Hello,
You just have to point to the correct URL, but I don’t know how your website is structured. What would be the working URL instead of “https://gestioncrcheste.es/alumno-8.php”?
1. Sorry, I don’t know what you mean by work. 2. And I have also encountered the following problem: How do I link tables to restrict user permissions to their own records? I have created an usuario_colegio column in the alumno table, which corresponds to the table ID: phpcg_users. And generated the following query: WHERE alumno.usuario_colegio = CURRENT_USER_ID. But it does not work.
Thanks in advance.
Hi,
- I meant “what would ber the correct URL?” – sorry, my English is not perfect
- It’s explained here: https://www.phpcrudgenerator.com/tutorials/user-profiles-and-rights#restrict-the-user-permissions-to-its-own-records.
And here is explained how to show the query sent by a READ list: https://www.phpcrudgenerator.com/tutorials/how-to-see-the-read-list-select-query
If you want me to have a look feel free to email me your ftp access.
Gilles
Hello again, the issue of permissions is already solved. It was the browser cache. But the first point I don’t get.
The url to your website depends on your project, I cannot guess where you want it to go.
Hello again! Thank you very much, I managed to solve it. Now the problem I’m having is that the filters don’t search the select fields. Thanks again in advance!
Hello,
I’d be happy to help you again but I really need to test on your server, else I can’t know anything about your database structure, fields and queries.
If you want me to have a look please email me your ftp access.
Hello again!
I have already sent you the email. The problems I encounter are the following: 1. In the selection fields I can’t get the searches to work. 2. In the selection fields I would like only the options created by the user to appear. 3. That users can modify their password, but not their permissions. 4. Would it be possible to change the menu image depending on the user that is connected?
Thanks in advance and greetings.
Hi Mati,
I just answered your email
Hello, I have also replied to you. I don’t know if you’ve seen the email. All the best!
Hi, I’ve used PHPCG for a couple of hours and I really like it. One error occurred while importing the demo db: a few e-mail addresses were to long. My hosting-provider names the db automatically which gives a very long db name. Could you add a condition which trims the front of the e-mail addresses if they’re to long for the db field? Thanks
Hi,
Thanks for purchase.
I won’t edit the package’s source code, but if you can email me your url & ftp access I’ll make the change on your own files.
Gilles
I did the installation at a local server, unregistered the package and transferred/imported it to my hosting. It works now
Nice. If you need anything else you’re welcome,
Gilles
Hi,
I ma getting below error during installation.
http://localhost/install/do-install.phpFatal error: Uncaught Error: Call to undefined function json_decode() in /var/www/html/conf/conf.php:25 Stack trace: #0 /var/www/html/install/do-install.php(233): include_once() #1 {main} thrown in /var/www/html/conf/conf.php on line 25
Hi,
Thanks for purchase.
This is a problem with your PHP. Please check first your PHP version; it must be 7.x or 8.x If it doesn’t help you have to install/enable the json_decode function on your server.
Gilles
the do_install set up completed successfully after install php extensions.
I however hit some more errors;
Am running the project on: - Oracle Linux 8.5 VM - Apache, MySQL 5.7 & PHP 7.2.24
http://IP/generator/generator.php.Fatal error: Uncaught Error: Call to undefined function generator\is_countable() in /var/www/html/generator/class/generator/Generator.php:2883 Stack trace: #0 /var/www/html/generator/class/generator/Generator.php(2975): generator\Generator->registerRelations() #1 /var/www/html/generator/class/generator/Generator.php(271): generator\Generator->getRelations() #2 /var/www/html/generator/generator.php(51): generator\Generator->init() #3 {main} thrown in /var/www/html/generator/class/generator/Generator.php on line 2883
My apologies for this error. Please could you upgrade your PHP to v7.3 or newer?
I just checked and found that the is_countable() function is available since PHP 7.3
If you’re curious about more explanations: since PHP 8.1, the count() function throws an error on a NULL value, that’s why I had to test if values are countable.
I just updated the requirements on the Codecanyon page, thanks for reporting this issue.
Am getting somewhere.
After setting up the “Build Read List” the “Open the admin page” results in an “404 Not found” error. What am i doing wrong?
Hi,
Please refer to the help center here, you’ll find the possible causes & solutions: https://www.phpcrudgenerator.com/help-center#error-404
Still getting the same even after “building the read list”.
employee List generated Open the admin page
Files created / edited :
/var/www/html/timesheet/admin/class/crud/Employee.php
/var/www/html/timesheet/admin/templates/employee.html
/var/www/html/timesheet/admin/crud-data/db-data.json
/var/www/html/timesheet/admin/crud-data/employee-filter-data.json
/var/www/html/timesheet/admin/crud-data/employee-select-data.json
Issue resolved
sorted out the RewriteRule in admin/.htaccess
RewriteRule . /admin/index.php [QSA,L]
RewriteRule . /timesheet/admin/index.php
Perfect!
So now everything should run smoothly.
If you need anything else you’re welcome,
Gilles
Getting the below errors now:
Notice: Undefined index: cu_ext_col_forms_fields-0 in /var/www/html/timesheet/generator/class/generator/Generator.php on line 1402 Notice: Undefined index: cu_ext_col_forms_fields-1 in /var/www/html/timesheet/generator/class/generator/Generator.php on line 1402 Notice: Undefined index: cu_ext_col_allow_in_forms-3 in /var/www/html/timesheet/generator/class/generator/Generator.php on line 1400
Parse error: syntax error, unexpected ‘empty’ (T_EMPTY), expecting ‘(’ in /var/www/html/timesheet/admin/inc/forms/employee-create.php on line 126
Hi,
Did you change anything in your employee table or in another table which has a relation to it?
Please try to reset your employee table structure in the generator, and reset your project relations, then rebuild your forms.
It may help, but I’m not sure, it depends on your project and settings.
If it doesn”t help please email me your access (FTP, generator & admin) and I’ll solve this for you
Is MySQL 8 supported?
No, not yet. If you click “More attributes” you can see the requirements in “Software Version”
At a fresh Xampp install with PHPCG everything the installation goes well. The read-list and form creation goed well. Viewing the read-list goes well but adding a record gives a error [“Parse error: syntax error, unexpected token “empty”, expecting “(” in D:\Xampp815\htdocs\admin\inc\forms\document-create.php on line 63]. Removing the ‘elsif empty’ section solves the error. Is this a new section of code which triggers the error? How to fix it permanently?
Hello,
Thanks for purchase, and for reporting, I don’t know how it happened but it did. There were some missing parenthesis in generator/generator-templates/form-create-template.php
Please do the following:
- Delete
generator/update/cache/update-versions.php.cache
from your server - Open the generator – you’ll see the new update version 1.26 available. Install it, it will resolve the problem.
If you need anything else you’re welcome,
Gilles
Thanks for the fast bug fix!
you’re welcome. I always do my best to solve all problems for everyone.
I think this download has been hacked… there is a sub-directory called ~partytown and the documentation has a broken link to
DMCA.com Protection Status www.hack-hunt.com
Is that correct? I just downloaded the lastest image.
Hi,
Fortunately, it hasn’t been hacked!
The ~partytown folder shouldn’t be there, please delete it.
You can ignore the DMCA.com Protection Status link. It is valid on phpcrudgenerator.com, not on localhosts.
If you need anything else you’re welcome,
Gilles