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

1:05 AM
Preload: double free or corruption crash – #78894
 
1:45 AM
Anybody wants to place some bets on the number of preloading bugs we will be receiving soon?
 
 
1 hour later…
Wes
2:46 AM
@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…
5:23 AM
o/
@DaveRandom let's do adventofcode.com!
 
Wes
5:48 AM
RIP PHP 7.1 YOU WERE TOO GOOD FOR THIS WORLD
morneng :B
 
 
2 hours later…
8:00 AM
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
8:36 AM
it's such a pain in the butt that Closure::fromCallable returns a different object every time
 
 
1 hour later…
9:55 AM
\o
 
10:15 AM
PHP 7.1 no longer supported?! !!!! It was released just three years ago
:(
 
Wes
just??????
 
YES
lol
I'm worried about doing the upgrade on my servers, what should I do? Use the apt-commands?
 
cmb
10:59 AM
If you're running distro packages, the php.net release cycle does not necessarily apply.
 
11:09 AM
@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 AM
@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
12:03 PM
@MadaraUchiha php is very backward compatible tho
 
@Wes True
 
 
1 hour later…
Jes
1:14 PM
Hi all
Good Evening
 
Wes
2:11 PM
@JoeWatkins ping
 
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
@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
yes
 
2:19 PM
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
yes i can see the table called profiles listed
 
@Jes you have test.profile in your error, is it profiles or profile?
 
Jes
i have table called profiles
 
$this->set(compact('profile')); there's your problem
 
Jes
but the error says test.profile is missing
 
2:23 PM
becuase your table is named profiles, not profile
 
Jes
yes am reading a entity and passing that to view
 
you have a spelling error
 
Jes
okay let me check
@Tiffany . thats how we set data to view in cakephp right
$this->set(compact('profile'))
 
2:39 PM
@Jes I don't know, I've never used cakephp
 
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
i understand the point. let me reviest my code and db
thanks again
 
Wes
3:06 PM
guys, what's the story with RFCs that can be written as markdown now?
 
3:56 PM
@Wes pong
 
o/
 
cmb
4:33 PM
\o
 
o/
 
 
2 hours later…
6:50 PM
ping p\ong
 
 
2 hours later…
8:21 PM
bling blong
 

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