WebSite X5Help Center

 
Lars S.
Lars S.
User

Warning: Undefined variable $fromcart in /customers/6/6/4/  en

Auteur : Lars S.
Visité 1480, Followers 1, Partagé 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.

Posté le
12 RéPONSES
Franz-Josef H.
Franz-Josef H.
Moderator

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.

Lire plus
Posté le de Franz-Josef H.
Lars S.
Lars S.
User
Auteur

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

Lire plus
Posté le de Lars S.
Franz-Josef H.
Franz-Josef H.
Moderator

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.

Lire plus
Posté le de Franz-Josef H.
Lars S.
Lars S.
User
Auteur

No: That did not work either...

Lire plus
Posté le de Lars S.
Andreas S.
Andreas S.
Moderator
Meilleur utilisateur du mois DE

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?

Lire plus
Posté le de Andreas S.
Andreas S.
Andreas S.
Moderator
Meilleur utilisateur du mois DE

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 ?

Lire plus
Posté le de Andreas S.
Lars S.
Lars S.
User
Auteur

Well, my license run out so no updates...

... The URLs is where the page we are talking about is linked from...(?!)

Lire plus
Posté le de Lars S.
Andreas S.
Andreas S.
Moderator
Meilleur utilisateur du mois DE

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

Lire plus
Posté le de Andreas S.
Lars S.
Lars S.
User
Auteur

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.

Lire plus
Posté le de Lars S.
Lars S.
Lars S.
User
Auteur

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?

Lire plus
Posté le de Lars S.
Lars S.
Lars S.
User
Auteur

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…frown

Lire plus
Posté le de Lars S.