Im using Symfony on Manjaro. And getting this error on default project;
Neither the property "ip" nor one of the methods "ip()", "getip()"/"isip()" or "__call()" exist and have public access in class "Symfony\Component\HttpKernel\Profiler\Profile" in #WebProfiler/Profiler/layout.html.twig at line 71
But i checked Profile file and ip(),getip(),isip() defined as ip,getIp(),isIp().
I think its caused by turkish letters.i was getting similar errors on ubuntu and export LC_ALL=C solves it.
But on manjaro this doesn't work. I tried export lang=en_US.UTF-8 or export LC_ALL=en_US.UTF-8 already.
Currently lang=tr_TR.UTF-8 , LC_ALL=tr_TR.UTF-8
Any suggestions with that?
Edit:I checked again and __call doesn't exist.Also im not getting any error on prod mode.(app.php)
Thanks
Its about policies of Turkish Republic. Set your clock back 1 hour and try again...
Related
When I run this script "python3 script.py" everything is alright.
(I tried to run the script as a root, and other user too)
import music21
import os
# "qt.qpa.xcb: could not connect to display"
# "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found."
os.putenv("QT_QPA_PLATFORM", "offscreen") #handle error above in my case
us = music21.environment.UserSettings()
us['musescoreDirectPNGPath'] = '/usr/bin/musescore3'
score = music21.converter.parse("myfile.musicxml")
score.write('musicxml.pdf', fp='song.pdf')
But when my django backend has to execute this code as a function to respond API call, its not working. I got:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-myusername'
This plugin does not support propagateSizeHints()
And if I remove part with "QT_QPA_PLATFORM", I got "qt.qpa.xcb" error.
I have not idea what to do.
I also tried to add following line in my gunicorn setup script but nothing changed.
export QT_QPA_PLATFORM=offscreen
Any ideas how to fix it ? What can be wrong ?
Server OS: Ubuntu 20.04
You probably need to also set XDG_RUNTIME_DIR. See https://github.com/cuthbertLab/music21/issues/260#issuecomment-834489173
I have a firebase functions project. It’s giving me the following error:
TypeError: Cannot read property 'privatekey' of undefined
The error is coming from this line here:
functions.config().blockchain.privatekey
Functions.config() is returning {} <— An empty object.
So my question is: why is it returning {}, and how can I fix it?
I’ve been able to solve similar problems with functions.config() in the past with this:
firebase functions:config:get > .runtimeconfig.json
But this isn’t working this time.
Is it something to do with how firebase init is configured? A node package?
Any help would be very much appreciated.
I had the same issue with the same folder structure and fixed it by changing directory (in PowerShell) into the "functions" folder and then running firebase serve from there.
If anyone gets this error after creating the .runtimeconfig.json
Try checking the encoding of your file. For me it was failing because the file was encoded as UTF-16 LE. I changed it to UTF-8 and it works fine
I installed some new plugin on Paw app (Postman 1 and 2 export, Swagger 2). And since I have this error when I try to make a new export. I tried to uninstall and reinstall only one plugin, and I still have this error.
But before I install some new plugin, I made some export without error.
This is the error I get when I attempt to make an export:
Export Failed
JavaScript Exception: TypeError: undefined is not an object (evaluating 'ds.length') ({
column = 20;
line = 2277;
})
Sorry for the very late follow up. We've been able to reproduce this issue, and release a fix last week.
Please update your Paw extensions by going to the Paw menu > Extensions > Check for Extensions Updates…
This will trigger the updating of all your installed extensions. Then, please try again to export your project, it should be working correctly.
i have a project in silex that works perfectly on my Windows running xampp, but when i cloned it to my Ubuntu it threw the error "InvalidArgumentException in Container.php line 96:
Identifier "csrf.token_manager" is not defined."
I'm not using xampp or lamp on Ubuntu so i guess it could be some configuration of the apache2 or php.
I had an error before with csrf_provider and solved it with
$app['form.csrf_provider'] = null;
but if i try do do something like that it says it espects CsrfProviderInterface or CsrfTokenManagerInterface or null, or it just ignores if i'm logged in or not. I tried to find something around but i just found how to handle the token manager manually, i just want it to work as is. Thanks in advance.
Thanks to mTorres i solved it registering the CsrfTokenProvider
use Silex\Provider\CsrfServiceProvider;
$app->register(new CsrfServiceProvider());
No idea why it works on windows whitout it though.
I wanted to update my Aptana-Studio 3 but always get the following error :
An error occurred while installing the items
session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]org.swift.jira.cli 2.5.0.1335554239, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.ChmodAction).
The action chmod failed - file D:\Aptana\Aptana Studio 3\plugins\org.swift.jira.cli_2.5.0.1335554239\jira.bat does not exist.
I checked, and jira.bat isn't there. If I remember well, I did have the same problem when I installed Aptana_Studio_3_Setup_3.1.2.exe a couple of month's ago, but as it seemed to work I didn't matter about it.
However, I would like to have it solved.
What can I do ?
Thx
Would you file a bug at jira.appcelerator.org about this? It seems something the Studio developers should address.