File upload issue in CI - file-upload

I am using CI and facing a problem while uploading file.
It gives a message mentioned below.
==================================================
Severity: Warning
Message: escapeshellarg() has been disabled for security reasons
Filename: libraries/Upload.php
Line Number: 1066
In some answers, I found that it is a server issue and CI has nothing to do with it. Now, is there any way to upload file bypassing the escapeshellarg() or is there any libraries I can use that doesn't require escapeshellarg()?
Please help.

I'm not sure which specific version of CI you're using, but the latest version does a check for that function before using it.
Take a look at the code here:
$cmd = function_exists('escapeshellarg')
? 'file --brief --mime '.escapeshellarg($file['tmp_name']).' 2>&1'
: 'file --brief --mime '.$file['tmp_name'].' 2>&1';
I'd say either upgrade or update the code manually.

Related

orocommerce install failed you have requested a non-existent parameter "web_backend_prefix"

I done all steps to install orocommerce on azure CentOS and nginx.
So now i got the following error after
$ ./bin/console oro:install --env=prod --timeout=900
"In ParameterBag.php line 102:
You have requested a non-existent parameter "web_backend_prefix".
Have anybody an idea?
How exactly did you get the source code (if GitHub - what repository, tag/branch, if download - what website and version)? Based on the error text it seems like it might be OroPlatform or OroCRM application, not OroCommerce.

Meet with error when running GetStarted example of IoT DevKit

After running automated install script, I opened GetStarted example - and am getting AZ3166wifi.h, AzureIoTHub.h, DevKitMQTTClient.h and SystemTickCounter.h not found errors in VSCode "problem" tab.
"file: 'file:///c%3A/Users/alias/Documents/Arduino/generated_examples/GetStarted_1/GetStarted.ino' severity: 'Info'
message: '#include errors detected. Please update your includePath. IntelliSense features for this translation unit (c:\Users\alias\Documents\Arduino\generated_examples\GetStarted_1\GetStarted.ino) will be provided by the Tag Parser.'
at: '4,1'
source: ''"
I re-ran the automated script and had no errors. Add the additional url as directed by the manual install page. Still the same issue.
Those files exists in our Arduino AZ3166 package.
You could find them under C:\Users{your username}\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\1.2.0\cores\Arduino and C:\Users{your user name}\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\1.2.0\libraries.
It is not included in mini solution folder as when compiling the code, the compiler would auto find those files.
We are working on the fix for the Intellisense problem.

Can download but file will not unzip as expected

I'm attempting to access the Geometadb database which first involves download of the SQL library. I did that and then I got the Geometadb library.
library(GEOmetadb)
Next I need the Geometadb file which is where things start to go wrong. I issue this command as seen exactly in the tutorial: https://bioconductor.riken.jp/packages/3.0/bioc/vignettes/GEOmetadb/inst/doc/GEOmetadb.html
if(!file.exists('GEOmetadb.sqlite')) getSQLiteFile()
It should proceed to not only download a .gz zip file but also unzip the file. It downloads it but never unzips it. Instead I get the following error.
trying URL 'http://dl.dropbox.com/u/51653511/GEOmetadb.sqlite.gz'
Error in download.file(url_geo, destfile = localfile, mode = "wb") :
cannot open URL 'http://dl.dropbox.com/u/51653511/GEOmetadb.sqlite.gz'
In addition: Warning message:
In url(url_geo_2, open = "rb") :
cannot open: HTTP status was '403 Forbidden'
Just not sure what's going on here. Considering these are just the early tutorial steps I'm probably missing something really obvious but I'm hoping someone can help me out. Thanks!

Custom Cartridge

I want to create a cartridge for OpenERP, i create one for Python 2.6.6, it's work, and i try to modifie the setup to execute "openerp-server" but i dont know where i can put the openERP code ? Where i puting him in the "Template" folder it gives my this error :
Unable to complete the requested operation due to: The server
ex-std-node295.prod.rhcloud.com that your application is running on
failed to respond in time. This may be due to a system restart..
Reference ID: 377355d1a4f3f9cc0d1914cca77dace9
Also I modified the /bin/setup like this :
Call openerp-server
exec $OPENSHIFT_PYTHON_DIR/cdk/Template/openerp-server
Also when I connect in SSH I don't find my template folder.
How do I fix this?
Openshift Origin has annoying timeout hardcoded in one gem of itself.
Find line 1006 in the following file:
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.26.3.1/app/models/rest_api/base.rb
The default timeout is set in the following line (line 1006):
self.read_timeout = 240
Other timeouts can be setuped due to documentation.
I have a working quickstart here: https://github.com/caruccio/openshift-openerp-quickstart/blob/master/README_en.md
You could use this code to your template dir. Please not it is "template", not "Template".

Using COM in R language

I am trying to get the rcom package for R working. It seems to have installed ok:
> install.packages("rcom");
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://mira.sunsite.utk.edu/CRAN/bin/windows/contrib/2.9/rcom_2.2-1.zip'
Content type 'application/zip' length 204632 bytes (199 Kb)
opened URL
downloaded 199 Kb
package 'rcom' successfully unpacked and MD5 sums checked
The downloaded packages are in
C:\Users\solomon\AppData\Local\Temp\Rtmpzb5oi4\downloaded_packages
updating HTML package descriptions
Then I try to run something:
>comCreateObject("Excel.Application");
Error: could not find function "comCreateObject"
What am I missing, the manual tells me that comCreateObject is the appropriate command. However, the manual's version is somewhat old. Anyone else have any insights?
I can see a couple of potential problems here - rcom has a weird installation.
Did you load the package - that is, run library(rcom) after installing it? I know, I know - but I forget that step all the time, and it would definitely give you the "could not find function" error.
Did you run the installstatconnDCOM() command? I almost didn't notice it telling me to do this.