post by jloliva1984 on Apr 12, 2023
post by johnny on Apr 13, 2023
Hello @jloliva1984 ,
Can you please give us more info about the issue that you have because I can’t reproduce it?
What Grocery CRUD Enterprise version do you use? If you used the version 2 then following the instructions here: Codeigniter 4 Installation | Grocery CRUD - A PHP CRUD Generator Library make sure that you also have this line at the top of your controller:
<?php namespace App\Controllers;
include(APPPATH . 'Libraries/GroceryCrudEnterprise/autoload.php');
I strongly recommend, since this is the first time you are using Grocery CRUD Enterprise to install version 3 since it has a wizard that can help you step by step of how to install it. You can see the wizard here: User's Page Login
If you are still having issues please do let me know.
Regards
Johnny
post by jloliva1984 on Apr 14, 2023
i followed the installation steps with 3.0.1 version and it did not work out ,i followed the same steps with previous 2,x version and it worked ,by the way ,how can i change the modal-header background color for modals in GC?
post by johnny on Apr 14, 2023
Hello @jloliva1984 ,
Since I can’t reproduce the issue that you have can you please help me understand which steps, you did follow?
For example I guess the answer about Are you using any PHP framework? was “Yes. I am using Codeigniter version 4.” but what about the other 2?
More specifically:
- Are you using Composer?
- Do you have an existing project that you will install the library?
For the modal header, I guess by having a simple CSS change will do the work for you. For example:
.modal .modal-header {
background: #FF0000;
color: #FFFFFF;
}
If the change doesn’t work for you try adding the !important to your CSS. For example:
.modal .modal-header {
background: #FF0000 !important;
color: #FFFFFF !important;
}
Regards
Johnny
post by jloliva1984 on Apr 14, 2023
thanks Johny ,I used GC some years ago and a lot of things had changed ,in previos projects i could put new columns on the grid for putting icons for certain action for the user Ej view apartmants on a buildings grid ,now I am facing the error that the apartment field is not found ir building table ,and of course it is that way ,how could I do this? , thanks for your time
post by johnny on Apr 14, 2023
Hello @jloliva1984 ,
So the first issue with the error
Class 'GroceryCrud\Core\GroceryCrud' not found
was solved right?
If so then I am not sure about the issue that you have currently. Can you please share the error that you are getting and maybe a screenshot with what you are trying to achive?
Regards
Johnny
post by jgct_70 on Jun 30, 2025
Hi. I am in the same page, 2025. Can’t make Enterprise work. This line include(APPPATH . ‘Libraries/GroceryCrudEnterprise/autoload.php’); didnt solve the problem, in fact that library is not there in my local installation, its in Librarioes/GroceryCrudEnterprise/libraries. Even changing that didnt solve the problem…
post by johnny on Jul 2, 2025
Hello @jgct_70 ,
If you are using the installation without composer then you should copy all the files from libraries to app/Libraries/GroceryCrudEnterprise. So your folder structure will look like this:
├── app
│ ├── Libraries
│ └── GroceryCrudEnterprise
│ ├── autoload.php
│ ├── composer
│ ├── grocery-crud
│ ├── laminas
│ ├── scoumbourdis
│ └── vlucas
If you have done that and it is still not working, what is the error that you are getting? Is the autoload.php there and loading?
Regards
Johnny
post by jgct_70 on Jul 2, 2025
Thanks for answering, but I’m done. After 72hs trying everything overn and over, had no success and nothing seems to help. I sent a of suggestions in wizard steps, regarding instructions that seem not clear to me. Also informed a lot of errors i get using composer.
post by johnny on Jul 2, 2025
Hello @jgct_70 ,
I am really sorry to hear that ![]()
I have your suggestions and I will try to improve the wizard in the future. I have sent you an email with the zip file with Grocery CRUD and Enterprise included so you can have a last try. No composer, just really unzipping the file and follow the instructions at the email.
Let me know if that will work for you.
Regards
Johnny
post by jgalak on Sep 29
I seem to be having the exact same issue. CodeIgniter 4.7.4. Installing without composer. GC 3.2.11 Enterprise. Not using composer, followed the wizard to the best of my ability.
Copied all the files into an existing (if barebones) CI project.
Copied the code from the example file into my controller. The only thing that seems to be different is that there is no app/Libraries/GroceryCrudEnterprise/vlucas directory. There was no such directory in the zip file (grocery-crud-enterprise-3.2.11-without-composer.zip)
Getting the error message Class "GroceryCrud\Core\GroceryCrud" not found on the line $groceryCrud = new GroceryCrud(($config, $db);
I have the following at the top of the controller file:
namespace App\Controllers;
use CodeIgniter\API\ResponseTrait;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
use Psr\Log\LoggerInterface;
use GroceryCrud\Core\GroceryCrud;
use Config\Database as ConfigDatabase;
use Config\GroceryCrud as ConfigGroceryCrud;
Back in CI 3/GC 2 I had to have a line to load the library. I’m just learning CI 4, but it seems like there is no need for that, autoload is supposed to handle it? Or do I need to do something to manually load the library?
Also, nothing particular set in config/autoload.php, maybe something should be?
I’m sure I’m missing some setting somewhere, but for the life of me can’t figure out what…
post by johnny on Sep 30
Hello @jgalak and welcome to our forums,
I am sorry that you are experiencing this. I have checked the wizard and indeed this step is missing. I will try to update the files as soon as possible, didn’t realise that people are still having this issue. Have you tried having the line mentioned above: Apr '23 ?
<?php namespace App\Controllers;
include(APPPATH . 'Libraries/GroceryCrudEnterprise/autoload.php');
This should do the trick. Can you please try and let me know if you are still having issues?
Regards
Johnny
post by jgalak on Sep 30
That did the trick, thanks!
I misunderstood the Apr 2023 comment above, I thought that line was only for GC 2. All good now, at least for the moment ![]()
New & Unread Topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Use callbackColumn() but keep inline edit functionality |
|
3 | 635 | Apr 12 |
| Setting quick search values via JavaScript not working properly for booleans |
|
0 | 558 | Nov 2025 |
| Inline edit has problems if the column width is set |
|
2 | 832 | Feb 28 |
| PRINT date format not consistent |
|
6 | 338 | Sep 7 |
| “Ooooops, something went wrong! If you can see this message, this is probably a misconfiguration in Grocery CRUD Enterprise!” |
|
6 | 240 | 4d |