I have this OpenCart error on the dashboard page below...
Warning: fopen(): open_basedir restriction in effect.
File(/var/www/vhosts/domainname.com/shop/download/test) is not within the allowed path(s):
(/var/www/vhosts/Cloud2.chrisames.co.uk/:/tmp/) in
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 99Warning:
fopen(/var/www/vhosts/domainname.com/shop/download/test): failed to open stream:
Operation not permitted in
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 99Warning:
fwrite() expects parameter 1 to be resource, boolean given in
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line
101Warning: fclose() expects parameter 1 to be resource, boolean given in
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line
103Warning: file_exists(): open_basedir restriction in effect.
File(/var/www/vhosts/domainname.com/shop/download/test) is not within the allowed
path(s): (/var/www/vhosts/Cloud2.chrisames.co.uk/:/tmp/) in
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line
105Warning: sprintf(): Too few arguments in
/var/www/vhosts/domainname.com/shop/admin/controller/common/home.php on line 106
any help most appreciated :)
Use FileZilla Client (freeware, download and install it https://filezilla-project.org/download.php?type=client or download from here http://sourceforge.net/projects/filezilla/ )... and then Chmod the directories and the files...
Set directories 755, files 644. (Servers have their own rules on permissions, but those are nowadays usual.)
That will fix it for you
Related
I recently added ripgrep to my list of vim plugins and, immediately after installation, I began receiving this error message whenever I loaded up vim:
Error detected while processing /Users/my_macbook/.vim/plugged/vim-ripgrep/plugin/vim-ripgrep.vim:
line 149: E1208: -complete used without -nargs
Press ENTER or type command to continue
Opening the offending file and reviewing lines 148-149 reveals:
148 command! -nargs=* -complete=file Rg :call s:Rg(<q-args>)
149 command! -complete=file RgRoot :call s:RgShowRoot()
I am well & truly out of my depth here, especially considering that this error was generated by simply installing the plugin; I've made 0 changes to the underlying file (vim-ripgrep.vim).
Has anyone encountered a similarly chronic error after installing ripgrep and, if so, how did you resolve it?
Congratulations, you have found a bug in a FOSS program. Next step is to either notify the maintainer via their issue tracker or, if you know how to fix it, submit a patch.
Case in point, the author assigns a completion method, -complete=file, but custom commands like :RgRoot don't accept arguments by default so the command makes no sense as-is: you can't complete arguments if you can't pass arguments.
It only needs a -nargs=*, like its upstairs neighbour, :Rg, to work properly and the error message is pretty clear about it:
line 149: E1208: -complete used without -nargs
See :help -complete, :help -nargs, and more generally, :help user-commands.
As the other answer stated, it is a bug in this plugin. There is a currently open pull request to fix this: https://github.com/jremmen/vim-ripgrep/pull/58 Unfortunately, the repository is currently unmaintained, so it is unlikely to be merged any time soon. This active forks page may help you identify a new maintainer.
Until there is a new maintainer for vim-ripgrep, I suggest checking out that branch in your ~/.vim/plugged/vim-ripgrep directory and reopening vim.
I met the functionally same error on VIM plugins while using vim ~/.vimrc.
My met error liking yours:
Error detected while processing /Users/my_macbook/.vim/plugged/vim-ripgrep
/plugin/vim-ripgrep.vim:
I fixed the upstairs with the below:
cd /Users/my_macbook/.vim/plugged/vim-ripgrep/plugin/
git pull --rebase
END!
If you are using vim-plug, try to change
Plug "jremmen/vim-ripgrep"
to
Plug "miyase256/vim-ripgrep", {'branch': 'fix/remove-complete-from-RgRoot'}
Here are detail steps:
comment Plug "jremmen/vim-ripgrep"
:PlugClean
add Plug "miyase256/vim-ripgrep", {'branch': 'fix/remove-complete-from-RgRoot'}
:PlugInstall
The following problem sometimes occurs when the page loads and also on the admin page. The error is not permanent and will disappear after the page is refreshed. What could be the problem and how could I fix it?
This is an error message:
Warning: fopen(/web/htdocs4/wallartdecorhu/home/www/system/storage/cache/cache.store.1604651378): failed to open stream: No such file or directory in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php on line 28Warning: flock() expects parameter 1 to be resource, boolean given in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php on line 30Warning: filesize(): stat failed for /web/htdocs4/wallartdecorhu/home/www/system/storage/cache/cache.store.1604651378 in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php on line 32Warning: fread() expects parameter 1 to be resource, boolean given in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php on line 32Warning: flock() expects parameter 1 to be resource, boolean given in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php on line 34Warning: fclose() expects parameter 1 to be resource, boolean given in /web/htdocs4/wallartdecorhu/home/www/system/library/cache/file.php on line 36
Keep a backup of system/library/cache/file.php and then download system/library/cache/file.php from https://github.com/opencart/opencart/blob/master/upload/system/library/cache/file.php and replace the old one.
/ the below errors shows in opencart server hosting problem please find the output how to modify these error in opencart config file
fopen(/home/ganeshk2334/public_html/test2/system/cache/cache.language.1469448162): failed to open stream: No such file or directory in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line49Warning: flock() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 51Warning: fwrite() expects parameter 1 to be resource, boolean given in/home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line55Warning: flock() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 57Warning: fclose() expects parameter 1 to be resource, boolean given in/home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 59Warning: fopen(/home/ganeshk2334/public_html/test2/system/cache/cache.currency.1469448162): failed to open stream: No such file or directory in/home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 49Warning: flock() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line51Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 53Warning: fflush() expects parameter 1 to be resource, boolean given in/home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 55Warning: flock() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line57Warning: fclose() expects parameter 1 to be resource, boolean given in /home/ganeshk2334/public_html/test2/system/library/cache/file.php on line 59
Open the websites files, go to system > cache and delete all the items in here, reload a page on the website and all your cache files should be repopulated with zero to no errors.
Whenever I add a third config file to my .immuconf.edn I get:
No configuration files were specified, and neither an .immuconf.edn file nor
an IMMUCONF_CFG environment variable was found
This is driving me crazy since I cant really find anything wrong.
Using this loads thing OK:
["configs/betfair.edn" "configs/web-server.edn"]
however this generated an error:
["configs/betfair.edn" "configs/web-server.edn" "~/betfair.edn"]
This is the content of betfair.edn
{:betfair {:usr "..."
:pwd "..."
:app-key "..." ;; key used
:app-key-live "..."
:app-key-test "..."}}
(where ... is replaced with actual strings)
Why am I getting this error when adding the third file and how can I fix this?
Make sure that the last file specified in your <project dir>/.immuconf.edn (~/betfair.edn) exists in your home directory.
Immuconf does some magic to replace ~ in filenames specified in .immuconf.edn with a value of (System/getProperty "user.home") so you might check if that system property points to the same directory where your ~/betfair.edn file is located.
I have recreated your setup and it works on my machine so it is probably a problem with locations or access rights to your files. Unfortunately, error handling for the no arg invocation of (immuconf.config/load) doesn't help in troubleshooting as it swallows any exceptions and returns nil. That exception would probably tell you what kind of error occured (some file not found or some IO error happened). You might want to file a pull request with a patch to log such errors as warnings instead of ignoring them.
I had made a source file data type change in source analyzer. I did realize that it had made the mapping invalid. I ran the mapping and it failed. Now I reverted the change, validated the mapping, check in the mapping, validated the workflow, check in the workflow.
Now I am getting the error:
Severity Timestamp Node Thread Message Code Message
INFO 7/23/2015 10:40:03 AM node01_CSADevelopment READER_1_4_1 FR_3055 Reading input filenames from the indirect file [<input_directory_folder>/<input_file>].
Severity Timestamp Node Thread Message Code Message
ERROR 7/23/2015 10:40:03 AM node01_CSADevelopment READER_1_4_1 FR_3000 Error opening file [<input_file_folder>/<header_of_the_input_file>]. Operating system error message [No such file or directory].
here the term "input file" is the file which I wanted to load and "header_of_the_input_file" is the header of the input file.
I don't understand, why it is happening. I had just made a small change and then reverted it.
The error is just saying the filenames mentioned in the indirect file are not found. So, you just need to make sure all the source files are there in the "input_file_folder"
There is a property in the session to configure the source file as indirect. An indirect file contains a list of source filenames. Informatica reads all the files listed and loads the data. If you think you have inadvertently made the source file indirect, you can change the option in session properties (mapping tab -> Source Qualifier)
It does not have anything to do with the datatype change and reverting it.