# |
Feb 10th 2018, 12:48 |
admad |
@jameg83 what's the output of `ls -al /usr/bin/wkhtmltopdf` |
# |
Feb 10th 2018, 10:17 |
slackebot |
'error') #3 /home/jamesg83/NetBeansProjects/bolted_connections/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(325): Cake\Error\ExceptionRenderer->_outpu in /home/jamesg83/NetBeansProjects/bolted_connections/vendor/cakephp/cakephp/src/Error/ErrorHandler.php on line 156 |
# |
Feb 10th 2018, 10:17 |
slackebot |
/home/jamesg83/NetBeansProjects/bolted_connections/vendor/friendsofcake/cakepdf/src/Pdf/CakePdf.php(298): CakePdf\Pdf\Engine\WkHtmlToPdfEngine->output() #1 /home/jamesg83/NetBeansProjects/bolted_connections/vendor/friendsofcake/cakepdf/src/View/PdfView.php(119): CakePdf\Pdf\CakePdf->output('...') #2 /home/jamesg83/NetBeansProjects/bolted_connections/vendor/cakephp/cakephp/src/Error/ExceptionRenderer.php(356): CakePdf\View\PdfView->render('error500', |
# |
Feb 10th 2018, 10:17 |
jameg83 |
Fatal error: [Cake\Core\Exception\Exception] System error "sh: 1: /usr/bin/wkhtmltopdf: Permission denied " when executing command "/usr/bin/wkhtmltopdf --quiet --print-media-type --orientation 'landscape' --page-size 'A4' --encoding 'UTF-8' --margin-bottom '15mm' --margin-left '50mm' --margin-right '30mm' --margin-top '45mm' - -". Try using the binary provided on http://wkhtmltopdf.org/downloads.html #0 |
# |
Feb 10th 2018, 10:17 |
jameg83 |
The error message is:- |
# |
Feb 10th 2018, 10:17 |
jameg83 |
Hi can anyone help with a cakepdf error? I can get wkhtmltopdf working fine via the command line but no success with php.. |
# |
Feb 10th 2018, 07:41 |
bibi |
Could somebody help me ? I am using cakephp 3.5 and when I want to debug my application with X_DEBUG in Eclipse IDE or NetBeans I get the following error message : Error: A route matching "X_DEBUG_SESSION_START=ECLIPSE_DBPGandKEY=1518..." could not be found. |
# |
Feb 10th 2018, 07:36 |
bibi |
hi ! |
# |
Feb 10th 2018, 07:20 |
loginews |
Before I installed bootstrap-ui, my screen looked like this: http://www.awesomescreenshot.com/image/3164343/ad83995edf63b83af84bcb9f2b68216b and after installation it looks like this: http://www.awesomescreenshot.com/image/3164344/e74d2d6ea3b12f908341cae910cbb1bc Is that normal? |
# |
Feb 10th 2018, 06:39 |
saeideng |
what you need? |
# |
Feb 10th 2018, 06:21 |
prahlad |
help me commerce website create |
# |
Feb 10th 2018, 06:20 |
prahlad |
i am cakephp developer |
# |
Feb 10th 2018, 06:20 |
prahlad |
hi friends |
# |
Feb 10th 2018, 03:42 |
loginews |
is that normal? |
# |
Feb 10th 2018, 03:41 |
loginews |
Before I installed bootstrap-ui, my screen looked like this: http://www.awesomescreenshot.com/image/3164343/ad83995edf63b83af84bcb9f2b68216b and after installation it looks like this: http://www.awesomescreenshot.com/image/3164344/e74d2d6ea3b12f908341cae910cbb1bc |
# |
Feb 10th 2018, 00:02 |
dereuromark |
aro: thats the idea |
# |
Feb 9th 2018, 22:37 |
kevin |
that worked |
# |
Feb 9th 2018, 22:37 |
kevin |
well you would be correct. |
# |
Feb 9th 2018, 22:37 |
ricksaccous |
in the EntityClass |
# |
Feb 9th 2018, 22:37 |
ricksaccous |
also you have to make sure it's accessible |
# |
Feb 9th 2018, 22:36 |
ricksaccous |
league is an entity object and the "columns" are it's properties |
# |
Feb 9th 2018, 22:36 |
ricksaccous |
I'd just use $league->primary_user_id = $this->Auth->user('id'); |
# |
Feb 9th 2018, 22:35 |
ricksaccous |
I usually don't use set for that |
# |
Feb 9th 2018, 22:35 |
kevin |
thats the set im using. |
# |
Feb 9th 2018, 22:34 |
kevin |
$league = $this->Leagues->patchEntity($league, $this->request->getData()); $league->set([‘primary_user_id’ => $this->Auth->user(‘id’)]); |
# |
Feb 9th 2018, 22:34 |
kevin |
so im trying to retrieve some data from a form, but then add data to the entity. $entity->set([‘item’ => ‘value’]); worked for me before, but now im getting DB errors that the value isnt being set |
# |
Feb 9th 2018, 21:46 |
kevin |
ok well I changed everything back to UTC and now it works, so now theres a compelling reason to keep it on UTC lol |
# |
Feb 9th 2018, 21:43 |
kevin |
when you get back, if you can tell me what one value of $userTimezone looks like, I would appreciate it. I tried setting it to -07:00 and America/New_York and neither had an impact on the time |
# |
Feb 9th 2018, 21:40 |
kevin |
thanks man |
# |
Feb 9th 2018, 21:40 |
kevin |
I like it |
# |
Feb 9th 2018, 21:38 |
ricksaccous |
I'm going to eat lunch, good luck |
# |
Feb 9th 2018, 21:37 |
ricksaccous |
expense_date is of course a UTC time |
# |
Feb 9th 2018, 21:37 |
ricksaccous |
this is what i'm doing in my app to display to users from different timezones |
# |
Feb 9th 2018, 21:36 |
ricksaccous |
<?= $this->Time->format($expense->expense_date,null,null,$userTimezone); ?> |
# |
Feb 9th 2018, 21:36 |
kevin |
and im not going to use +01:00 format. I’ll use actual timezones, like ‘America/New York’ |
# |
Feb 9th 2018, 21:35 |
kevin |
yeah I get it. I made sure I changed the bootstrap and mysql db |
# |
Feb 9th 2018, 21:35 |
ricksaccous |
mostly because my knowledge on it is mostly play with it until it works, haha |
# |
Feb 9th 2018, 21:34 |
ricksaccous |
it's kind of hard to explain but yeah, you'll figure it out |
# |
Feb 9th 2018, 21:34 |
ricksaccous |
once |
# |
Feb 9th 2018, 21:34 |
ricksaccous |
would be easier to save it in UTC so you can change it onoce |
# |
Feb 9th 2018, 21:34 |
ricksaccous |
it's not that bad i guess, you just have to associate your timezone wiht the date being saved somehow and then change it from AZ to whatever user timezone is |