Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Using a third party class in CI4
Post: RE: Using a third party class in CI4

"Solved" is by re-creating a new CI4 install, installing the required packages using composer, and copying over the controllers, models, views etc. from the original install. It works now... :huh:
2,544 Views
7 Replies
06-19-2022, 05:52 AM
Sincere
    Thread: Using a third party class in CI4
Post: RE: Using a third party class in CI4

It appears to be fine: defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php'); I have myth-auth installed and operational as well through composer. So I don't unders...
2,544 Views
7 Replies
06-16-2022, 12:08 PM
Sincere
    Thread: Using a third party class in CI4
Post: RE: Using a third party class in CI4

None that I'm aware of. What should I look out for? Where can I look?
2,544 Views
7 Replies
06-16-2022, 10:33 AM
Sincere
    Thread: Using a third party class in CI4
Post: RE: Using a third party class in CI4

I'm still getting the following error: Code: -- Class "InfluxDB\Client" not found -- When using: PHP Code: -- use InfluxDB\Client; // and new Client('localhost',8086); --
2,544 Views
7 Replies
06-16-2022, 09:44 AM
Sincere
  Question Thread: Using a third party class in CI4
Post: Using a third party class in CI4

I want to use the influxdb-php class in CI4: https://github.com/influxdata/influxdb-php I tried calling the class from the controller using: PHP Code: -- use InfluxDB; use InfluxDB\Client; use...
2,544 Views
7 Replies
06-15-2022, 09:25 PM
Sincere
    Thread: Unable to add to array
Post: RE: Unable to add to array

@kenjis helped solve this: I had to do the following: PHP Code: -- $influx_server_data[] = [$influx_server_point]; --
858 Views
2 Replies
06-15-2022, 09:20 PM
Sincere
  Question Thread: Unable to add to array
Post: Unable to add to array

I've done this many times before: adding an array to an yet already existing array, but for some reason this isn't working now, and I'm out of clues: PHP Code: -- $influx_server_data = []; $stats =...
858 Views
2 Replies
06-15-2022, 03:52 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

Then why would inserting data through the query builder work, and the model would reject the same input?
6,302 Views
19 Replies
06-15-2022, 03:46 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I'm afraid I'm not seeing that: https://i.ibb.co/YPxjh6z/Screen-Shot-2022-06-14-at-22-09-23.png Also no toolbar below, which would also be helpful. BTW, thank you thus far for your dedication to ...
6,302 Views
19 Replies
06-14-2022, 07:10 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I don't see an arguments tab, only:     Backtrace Server Request Response Files Memory
6,302 Views
19 Replies
06-14-2022, 07:02 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I'm not seeing any insert queries: Code: -- ALERT - 2022-06-14 20:32:32 --> SELECT 1 FROM `live_outputs` WHERE `alias` = 'pEWtvZPx' LIMIT 1 ERROR - 2022-06-14 20:32:32 --> Cannot add or update ...
6,302 Views
19 Replies
06-14-2022, 06:34 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I'm getting this error now: Code: -- CodeIgniter\Events\Events::Config\{closure}(): Argument #1 ($query) must be of type Config\Query, CodeIgniter\Database\Query given -- This is my events.php: ...
6,302 Views
19 Replies
06-14-2022, 06:12 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I'm missing something to get this to work in my config/events.php file: PHP Code: --
6,302 Views
19 Replies
06-14-2022, 06:00 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I would like to, how can I check this? The above screenshot is what I get when I test this.
6,302 Views
19 Replies
06-14-2022, 05:24 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

I tried something different today: PHP Code: --     public function man_insert2()     {         $data=  [             'alias' =>  'AbCxExGh',             'status'    =>  0,             'descrip...
6,302 Views
19 Replies
06-14-2022, 05:08 PM
Sincere
    Thread: Cannot add or update a child row: a foreign key constraint fails
Post: RE: Cannot add or update a child row: a foreign ke...

iRedds Wrote: (06-08-2022, 02:07 PM) -- Check if the fields in $allowedFields match. Try adding the same data via a raw query. -- https://san.aq/2fx Works fine if I run the query manually throu...
6,302 Views
19 Replies
06-09-2022, 05:49 AM
Sincere
  Question Thread: Cannot add or update a child row: a foreign key constraint fails
Post: Cannot add or update a child row: a foreign key co...

I'm getting the following error when inserting data (through the required model) into our SQL database: Cannot add or update a child row: a foreign key constraint fails (`scs`.`live_outputs`, CONSTRA...
6,302 Views
19 Replies
06-07-2022, 07:18 PM
Sincere
    Thread: Codeigniter 4 model does not validate or updates $updatedField
Post: RE: Codeigniter 4 model does not validate or updat...

At the time of writing my earlier reply is still marked for moderator approval. But an attentive contributer at my Stackoverflow pointed me to my error: I was calling GroupModel, but the model was ca...
1,146 Views
4 Replies
06-01-2022, 08:02 PM
Sincere
    Thread: Codeigniter 4 model does not validate or updates $updatedField
Post: RE: Codeigniter 4 model does not validate or updat...

The relevant code in the controller: PHP Code: --                   $groupmodel=new GroupModel();                     $group = $groupmodel->find($_GET["id"]);                     if(is_null($group...
1,146 Views
4 Replies
05-30-2022, 09:06 PM
Sincere
  Question Thread: Codeigniter 4 model does not validate or updates $updatedField
Post: Codeigniter 4 model does not validate or updates $...

This is my first time working with models in CI(4). The below model works when fetching data, and also updating an excising record. But for some reason it does not validate any input data. I can leave...
1,146 Views
4 Replies
05-30-2022, 06:37 AM
Sincere

Theme © iAndrew 2016 - Forum software by © MyBB