Warning: Undefined variable $fromcart in /customers/6/6/4/
Autor: Lars S.
Visitado 1532,
Followers 1,
Compartido 0
Why do I get this message when I will login on my private page?
Warning: Undefined variable $fromCart in /customers/6/6/4/user.dk/httpd.www/DB/imlogin.php on line 68
- It is a new warning - I have not seen it before.
Publicado en
You may be using an outdated php version. You need at least 7.1, but 7.4 or 8.0 is better. You should be able to set it up with your provider.
Autor
Hi Franz-Josef
Well. the php version I used was 7.4 - and I tried to set the version to 8.0 but still the same warning...
It is possible that old and new php code may have mixed up on the server. Therefore it is the best to delete the webspace and upload the entire project again.
Autor
No: That did not work either...
Which private page is it where you want to log in and then get this error message?
This error occurs mostly when you generate a database on the PC via "xamp" and use it in WSX5! Is this the case with you?
Autor
https://laboss.dk/DB/imlogin.php?loginstatus=-3
No, I do not use anything but WSX5!
Can you update to the EVO V2021.5.4 version?
Maybe the error is with the older version.
What does the URL of the website say? https://laboss.dk/DB or https://laboss.dk ?
Autor
Well, my license run out so no updates...
... The URLs is where the page we are talking about is linked from...(?!)
IF you have uploaded your website to a folder for a short time, you must also write the folder behind your domain. So when exporting to the Internet, you must specify the correct domain with folder in the "URL of the website".
Autor
I know - and have done that. And it has been working for mounth, I just resently recieved the php-message on that specific login page. All things works - I just wondered why this message... nothing else.
Autor
I have now made a new project - and I get the same Warning when I come the locked page
https://laboss.dk/Pr/imlogin.php?loginstatus=-3
Warning: Undefined variable $fromCart in /customers/6/6/4/laboss.dk/httpd.www/Pr/imlogin.php on line 68
Line 68 in imlogin.php reads:
<?php if ($fromCart): ?>
So why do I get this warning?
Autor
Ok – let me summarize: You made an update – just before my update-license ran out. But the update was with flaws – and now you want me to buy a new up-date license – for correcting your faults?
Well – I have found out that I can turn on “Do not show PHP-error messages” at my (domain) provider, so I will do that. But…