opencart error occurs in admin file - opencart

Error occurs in opencart admin file how it solve please help me
Notice: Use of undefined constant DIR_MODIFICATION - assumed 'DIR_MODIFICATION' in
/home/ganeshk2334/public_html/test2/system/startup.php on line
72Notice: Use of undefined constant DIR_MODIFICATION - assumed
'DIR_MODIFICATION' in
/home/ganeshk2334/public_html/test2/system/startup.php on line
76Notice: Use of undefined constant DIR_MODIFICATION - assumed
'DIR_MODIFICATION' in
/home/ganeshk2334/public_html/test2/system/startup.php on line
72Notice: Use of undefined constant DIR_MODIFICATION - assumed
'DIR_MODIFICATION' in
/home/ganeshk2334/public_html/test2/system/startup.php on line
76Notice: Use of undefined constant DIR_MODIFICATION - assumed
'DIR_MODIFICATION' in
/home/ganeshk2334/public_html/test2/system/startup.php on line
72Notice: Use of undefined constant DIR_MODIFICATION - assumed
'DIR_MODIFICATION' in
/home/ganeshk2334/public_html/test2/system/startup.php on line 76
and error occurs in website Warning: fclose() expects parameter 1 to be resource, boolean given in
/home/ganeshk2334/public_html/test2/system/library/cache/file.php on
line 59
these cart in server my cart is working in localhost but not working in server please find it and solve it.

Related

How can I fix an Opencart 3 page loading error?

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.

Fortran "Cannot assign to a named constant at (1)" in if statement

Here's what I'm trying to run:
if (z.le.zstart) then
if (y.ge.((6.95*wg_y2)/5)).and.(y.le.((12.55*wg_y2)/5)) then
indexmedia=nd
end if
end if
For context,
zstart is an arbitrary line of constant y.
wg_y2 = 5e-6
And for some reason it doesn't like the (y.ge.((6.95*wg_y2)/5)) bit, as the (1) was placed at the end of that bit.
I had a suspicion that it doesn't like anything that isn't an integer in the if statement but I changed 6.95 to 7 and 12.55 to 13 and it still didn't like it. Perhaps it needs to end up resolving to an integer?
I need these parameters to end up to
6.95 < y < 12.55 though.
Is there a workaround for this?
When compiling the code (not nice as I didn't declare the variables!, but that isn't the problem here so I abstain from it to keep it a bit small):
program tst
if (z.le.zstart) then
if (y.ge.((6.95*wg_y2)/5)).and.(y.le.((12.55*wg_y2)/5)) then
indexmedia=nd
end if
end if
end
one gets the error:
aa.f90:3:29:
if (y.ge.((6.95*wg_y2)/5)).and.(y.le.((12.55*wg_y2)/5)) then
1
Error: Cannot assign to a named constant at (1)
aa.f90:6:3:
end if
1
Error: Expecting END PROGRAM statement at (1)
This is due to a missing pair of round brackets in the line:
if (y.ge.((6.95*wg_y2)/5)).and.(y.le.((12.55*wg_y2)/5)) then
which should read
if ((y.ge.((6.95*wg_y2)/5)).and.(y.le.((12.55*wg_y2)/5))) then

Runtime Error illegal event name python

When I'm running program I get this error, what does it mean?
RuntimeError: illegal event name
exception RuntimeError
Raised when an error is detected that doesn’t
fall in any of the other categories. The associated value is a string
indicating what precisely went wrong.

Error on line 50: attempt to give DATA in type-declaration

I am try to compile FORTRAN 77 code and I have problems like this.
integer row(nnzmax+nszero),column(nnzmax+nszero),
+ ireg(nximax),florsm(nzimax)/nzimax*2/
real lambda,imodel(nximax,nzimax),dm(nmmax),
+ dum1(nmmax),dum2(nmmax),data(ndmax+nsconst),
+ anz(nnzmax+nszero),ibmodel(nximax,nzimax),
+ smwz(nzimax)/nzimax*-1./,spwz(nzimax)/nzimax*-1./
Error on line 50: attempt to give DATA in type-declaration
Error on line 52: attempt to give DATA in type-declaration
I used to work with this code,but it has been compiled with Intel Fotran Compiler. I have moved to other country so I do not have ifort installed here. I am using fort77 now. Should I try with some compilation options or?I have used this script to compile app .f from this folder.
#! /bin/csh -f
set list=`ls *.f`
set FLAG="-o"
echo $list
foreach file (${list})
echo $file
f77 ${file} ${FLAG} ${file:r}
mv ${file:r} ../bin/.
end
I have changed declarations like this:
integer row(nnzmax+nszero),column(nnzmax+nszero),
+ ireg(nximax),florsm(nzimax),
+ data florsm /nzimax*2/
real lambda,imodel(nximax,nzimax),dm(nmmax),
+ dum1(nmmax),dum2(nmmax),data(ndmax+nsconst),
+ anz(nnzmax+nszero),ibmodel(nximax,nzimax),
+ data smwz /nzimax*-1./,
+ data spwz /nzimax*-1./
But still I got
Error on line 50: attempt to give DATA in type-declaration
Error on line 53: attempt to give DATA in type-declaration
Error on line 385: Declaration error for smwz: used as variable
Error on line 385: Declaration error for smwz: may not appear in namelist
Error on line 385: Declaration error for spwz: used as variable
Error on line 385: Declaration error for spwz: may not appear in namelist
This fragment, and the later similar ones
florsm(nzimax)/nzimax*2/
looks like a non-standard way of initialising a variable with a sort-of data statement merged into the declaration. A more standard approach would separate the two, something like
florsm(nzimax)
...
data florsm /nzimax*2/
One of the beauties of working with the Intel Fortran compiler is its long history; along the way it has picked up, and continues to accept, all sorts of non-standard features. I'm guessing that this is one of those and is not acceptable to the other compiler you mention.
Of course, this seems to be what the error statement seems to be telling us.
A standard replacement might be
florsm(nzimax) = 2
but that takes advantage of a Fortran 90 feature which something called fort77 might not understand either.

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