# |
Jul 10th 2018, 17:16 |
admad |
@jhob there must be lots of minor changes between 3.3 and 3.6. Read the migration guide |
# |
Jul 10th 2018, 17:06 |
jhob |
After upgrading 3.3.16 to 3.6.7 AJAX post is returning 403, was working fine before. Has something changed with authentication that I need to handle differently? |
# |
Jul 10th 2018, 17:03 |
ricksaccous |
I suppose I can do this https://stackoverflow.com/questions/34090241/import-vendor-class-in-cakephp-3-without-require |
# |
Jul 10th 2018, 17:01 |
popperz0r |
somehow |
# |
Jul 10th 2018, 17:01 |
popperz0r |
fixed with frozendate |
# |
Jul 10th 2018, 17:00 |
ricksaccous |
without going down a rabbit hole where I refactor a decent amount of this application |
# |
Jul 10th 2018, 17:00 |
ricksaccous |
for legacy reasons I can't namespace this class |
# |
Jul 10th 2018, 17:00 |
ricksaccous |
anyone familiar with including non-namespaced class somewhere in a cake application? |
# |
Jul 10th 2018, 16:54 |
popperz0r |
`I18n::getLocale()` is returning pt_PT but it isnt loading the file |
# |
Jul 10th 2018, 16:53 |
popperz0r |
nothing is loading my cake.po :( |
# |
Jul 10th 2018, 16:53 |
popperz0r |
Is this still working? `'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),` or rather use this? `ini_set('intl.default_locale', 'pt_PT'); ` |
# |
Jul 10th 2018, 16:52 |
popperz0r |
Hello! |
# |
Jul 10th 2018, 16:32 |
james.phillips |
ahh its a path issue https://host-7djrft.api.swiftype.com/api/as/v1/engines/xxx//documents/_search |
# |
Jul 10th 2018, 16:27 |
james.phillips |
$query = $this->Documents->find() ->where([ 'title' => 'Cat', ]); gives me no results do I need to tell it its a fuzzy search or something? |
# |
Jul 10th 2018, 16:22 |
james.phillips |
i downgrade and not getting the error... not getting any matches back but at least no errors |
# |
Jul 10th 2018, 16:15 |
james.phillips |
ahh think its a version issue again |
# |
Jul 10th 2018, 16:09 |
james.phillips |
@josbeir are you from belgium ? |
# |
Jul 10th 2018, 16:09 |
james.phillips |
any idea why I get Unknown method "getRepository" when doing $query->toArray() on ES? |
# |
Jul 10th 2018, 15:43 |
james.phillips |
so I did a little hack hoping that when I upgrade the url would be the way to do it ;) |
# |
Jul 10th 2018, 15:43 |
james.phillips |
and got The DSN string 'host-7djrft.api.swiftype.com/api/as/v1/engines/riptestengine/documents/' could not be parsed. |
# |
Jul 10th 2018, 15:42 |
james.phillips |
so i took out https:// |
# |
Jul 10th 2018, 15:42 |
james.phillips |
eariler and got Database driver https could not be found. |
# |
Jul 10th 2018, 15:42 |
james.phillips |
I tried that.... |
# |
Jul 10th 2018, 15:12 |
josbeir |
but you should indeed upgrade, elastica has also gotten some love :slightly_smiling_face: |
# |
Jul 10th 2018, 15:10 |
josbeir |
remember, all settings configured in de datasource are passed to the Elastica client |
# |
Jul 10th 2018, 15:10 |
josbeir |
'url' => 'https://host-7djrft.api.swiftype.com:9200' or something |
# |
Jul 10th 2018, 15:09 |
josbeir |
no need to hack stuff |
# |
Jul 10th 2018, 15:09 |
josbeir |
so in your cake datasource options you can just use that to override the url :P |
# |
Jul 10th 2018, 15:09 |
josbeir |
there's a value called 'url' in there :P |
# |
Jul 10th 2018, 15:09 |
josbeir |
$_config |
# |
Jul 10th 2018, 15:09 |
josbeir |
see the options array ? |
# |
Jul 10th 2018, 15:09 |
josbeir |
check Elastica\Client.php |
# |
Jul 10th 2018, 15:08 |
josbeir |
@james.phillips |
# |
Jul 10th 2018, 15:06 |
romanovich095 |
With few diferrent requests |
# |
Jul 10th 2018, 15:06 |
romanovich095 |
Try to log the $url before the condition |
# |
Jul 10th 2018, 15:05 |
james.phillips |
but I cant seem to set url so it always does the else |
# |
Jul 10th 2018, 15:04 |
james.phillips |
if (!empty($url)) { $baseUri = $url; } else { $baseUri = $this->_scheme.'://'.$connection->getHost().':'.$connection->getPort().'/'.$connection->getPath(); } |
# |
Jul 10th 2018, 15:04 |
james.phillips |
so in ruflin elastic theres |
# |
Jul 10th 2018, 15:03 |
james.phillips |
been using this https://book.cakephp.org/3.0/en/elasticsearch.html# |
# |
Jul 10th 2018, 15:03 |
romanovich095 |
Can You send me the plugin You use for es? |
# |
Jul 10th 2018, 15:02 |
james.phillips |
tried setting port to null and but that errors |