How can I fix an Opencart 3 page loading error? - opencart

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.

Related

GDAL gdalbuildvrt throws error:- CalledProcessError: Command returned non-zero exit status 1

I am mosaicking about 50 image tiles in a .img format. The file paths are arranged in an ascending order in a text file. I want to use gdalbuildvrt to build virtual dataset mosaic. Since the each file is about 1.5 GB in size, the mosaic would be ~75GB.
As I run the gdalbuildvrt in my python script or in command line.
The formats which I have tried are shown below:
os.system("gdalbuildvrt -input_file_list text1.txt text1VRT.vrt")
What can be the reason for this error?
On running the subprocess.check_call() function, the following error is shown:
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command returned non-zero exit status 1
Is it that the gdalbuildvrt function cannot be found?
I resolved the issue, the problem was that the input file text1.txt had the list of files not on separate lines. So when reading the .txt file, it was reading the whole file contents as a single file name, thereby running out of the memory buffer.
Second issue - non zero exit status 1 was because the text file with list of path has quotation marks that were being read by gdalbuidvrt and thus making the file path invalid.

IDQ input parameter file error

In IDQ infacmd I am trying to execute multiple wf with source input parameter file, The first infacmd gets success but the second infacmd mapping fails because of input parameter is taking the default value not the assigned value.
I have got resolved it, I have created a parameter in workflow level and assigned the mapping parameter to wf parameter and called the wf level parameter in the infacmd . It just done my work.

opencart error like this in server

/ 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.

informatica is taking the source file as the indirect file

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.

OpenCart dashboard error - fopen(): open_basedir restriction in effect

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