WebSite X5Help Center

 
Lars S.
Lars S.
User

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

Автор: Lars S.
Просмотрено 1482, Подписчики 1, Размещенный 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.

Размещено
12 Ответы
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.

Читать больше
Размещено От Franz-Josef H.
Lars S.
Lars S.
User
Автор

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

Читать больше
Размещено От 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.

Читать больше
Размещено От Franz-Josef H.
Lars S.
Lars S.
User
Автор

No: That did not work either...

Читать больше
Размещено От Lars S.
Andreas S.
Andreas S.
Moderator
Лучший пользователь месяца 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?

Читать больше
Размещено От Andreas S.
Andreas S.
Andreas S.
Moderator
Лучший пользователь месяца 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 ?

Читать больше
Размещено От Andreas S.
Lars S.
Lars S.
User
Автор

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

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

Читать больше
Размещено От Lars S.
Andreas S.
Andreas S.
Moderator
Лучший пользователь месяца 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".

Читать больше
Размещено От Andreas S.
Lars S.
Lars S.
User
Автор

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.

Читать больше
Размещено От Lars S.
Lars S.
Lars S.
User
Автор

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?

Читать больше
Размещено От Lars S.
Lars S.
Lars S.
User
Автор

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

Читать больше
Размещено От Lars S.