Page 1 of 1

Login dialog on local machine

Posted: Sun Aug 26, 2018 7:01 am
by alex4orly
Just installed and started using XAMPP on my Windows 8.1 machine
All works fine and I can test things before uploading to the live site, but...
If I try to access the Loging dialog by direct URL, it works fine on the website, but on my local XAMPP, it shows

This : http://www.beleuramyhome.org.au/login.jpg

I know we don't have XAMP support here, but maybe someone has an idea???

Cheers

Re: Login dialog on local machine

Posted: Sun Aug 26, 2018 9:10 am
by WWBman
What url are you using?
I've just tried it and it works on my test login project using: localhost/test1/index.php
index.php being the equivalent to your login.php

Re: Login dialog on local machine

Posted: Sun Aug 26, 2018 10:53 am
by WWBman
Are you using a MySQL database?
Is it set up the same as the 'live' one?
I guess the error may be a PHP notice error and the PHP error level in Xampp is more severe than your host's level.
Try temporarily turning off error reporting by using:
<?php
error_reporting(0);
?>

and see what happens.

Re: Login dialog on local machine

Posted: Sun Aug 26, 2018 8:41 pm
by alex4orly
Hi WWBman,

The "Problem" started here - https://www.wysiwygwebbuilder.com/forum ... ead#unread
I asked what is the purpose of the two final code lines generated by WWB :

$username = isset($_COOKIE['username']) ? $_COOKIE['username'] : '';
$password = isset($_COOKIE['password']) ? $_COOKIE['password'] : '';

I didn't get an answer and commented those two lines out, I didn't understand what are they for.
It seems that commenting those out, doesnwt cause a problem on the live server, but XAMPP shows the error.

After un-commenting the 2 line, XAMPP works just fine

Thank you