« first day (3333 days earlier)      last day (1840 days later) » 

01:05
Preload: double free or corruption crash – #78894
01:45
Anybody wants to place some bets on the number of preloading bugs we will be receiving soon?
 
1 hour later…
Wes
Wes
02:46
@FélixGagnon-Grenier it's more like 30g
totally doable since i am not much into sugary things already
had to give up: bread pasta sugar in coffee and alcohol
giving up pasta is quite a big deal for me :B
but i am getting used to shirataki
i just wish they weren't 200g @ 10€
 
3 hours later…
05:23
o/
@DaveRandom let's do adventofcode.com!
Wes
Wes
05:48
RIP PHP 7.1 YOU WERE TOO GOOD FOR THIS WORLD
morneng :B
 
2 hours later…
08:00
vicissitudes successive, alternating, or changing phases or conditions, as of life or fortune; ups and downs: They remained friends through the vicissitudes of 40 years.
Wes
Wes
08:36
it's such a pain in the butt that Closure::fromCallable returns a different object every time
 
1 hour later…
09:55
\o
10:15
PHP 7.1 no longer supported?! !!!! It was released just three years ago
:(
Wes
Wes
just??????
YES
lol
I'm worried about doing the upgrade on my servers, what should I do? Use the apt-commands?
cmb
cmb
10:59
If you're running distro packages, the php.net release cycle does not necessarily apply.
11:09
@Wes Most languages have a LTS system
But yes, 3 years of support is pretty normal @yessure
hello
can i ask a force question in here
?
11:44
@aryatehran No, you may only ask mass times acceleration questions here.
3
(I don't know what a "force" question is, but don't ask to ask, just ask :)
@MadaraUchiha ! I didn't know
@cmb yes, I'm using packages, compiling is kinda frustrating for me lol. I think I'll upgrade from this repo: packages.sury.org/php
Room 11's Advent of Code private leaderboard password: 114365-5d3b257b
Wes
Wes
12:03
@MadaraUchiha php is very backward compatible tho
@Wes True
 
1 hour later…
Jes
Jes
13:14
Hi all
Good Evening
Wes
Wes
14:11
@JoeWatkins ping
Jes
Jes
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test.profile' doesn't exist
getting this error in cakephp app
please help
public function index() {
$userId = $this->Auth->user('id');
//echo $userId;
$profile = $this->Profile->findByUserId($userId);
//debug($profile->errors());
$this->set(compact('profile'));


}
@Jes where's your SQL?
you're getting an SQL error
Jes
Jes
@Tiffany thank you.. I have created the table as per docs
Singular Name for the Model
public function initialize(array $config)
{
parent::initialize($config);

// $this->table('profiles');
$this->setTable('profiles');
$this->setDisplayField('id');
$this->setPrimaryKey('id');

$this->belongsTo('users', [
'foreignKey' => 'cuser_id',
'joinType' => 'INNER'
]);
$this->hasMany('Connections', [
'foreignKey' => 'profile_id'
]);
}
@Jes well something isn't correct, otherwise you wouldn't be receiving the SQL error.
are you familiar with SQL? can you connect to the SQL server?
Jes
Jes
yes
14:19
check for databases and tables using show databases; and show tables;
'foreignKey' => 'cuser_id', and 'foreignKey' => 'profile_id' seem incorrect, this would insert a string of cuser_id and profile_id, I believe, instead of the variable value
Jes
Jes
yes i can see the table called profiles listed
@Jes you have test.profile in your error, is it profiles or profile?
Jes
Jes
i have table called profiles
$this->set(compact('profile')); there's your problem
Jes
Jes
but the error says test.profile is missing
14:23
becuase your table is named profiles, not profile
Jes
Jes
yes am reading a entity and passing that to view
you have a spelling error
Jes
Jes
okay let me check
@Tiffany . thats how we set data to view in cakephp right
$this->set(compact('profile'))
14:39
@Jes I don't know, I've never used cakephp
Jes
Jes
mm okay
but given that it says profile, and your error is stating that the table profile doesn't exist, and that you've said your table name is profiles, that should mean that it's a spelling issue, unless there's other information missing
Jes
Jes
i understand the point. let me reviest my code and db
thanks again
Wes
Wes
15:06
guys, what's the story with RFCs that can be written as markdown now?
15:56
@Wes pong
cmb
cmb
16:33
\o
 
2 hours later…
18:50
ping p\ong
 
2 hours later…
20:21
bling blong

« first day (3333 days earlier)      last day (1840 days later) »