Strange error
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Strange error
I implemented visitors register on a website
You can check this here : http://www.beleuramyhome.org.au/villa.php
use villa number 221 to enter
I get this in debug mode (1 error)
Navigated to http://www.beleuramyhome.org.au/villa.php
villa.php:349 GET http://www.beleuramyhome.org.au/none 404 (Not Found)
Navigated to http://www.beleuramyhome.org.au/frontpage.php
In that villa.php on line 349 is the end of the page </html>
My questions are:
1) Why does the URL have an extra /none? Where is that from
2) The starting page - villa.php calls writelog.php with the following : http://www.beleuramyhome.org.au/writelo ... yvilla=221
But if I enter this call manually into the URL line : http://www.beleuramyhome.org.au/writelo ... yvilla=221 it works fine
Any idea?
Thanks
You can check this here : http://www.beleuramyhome.org.au/villa.php
use villa number 221 to enter
I get this in debug mode (1 error)
Navigated to http://www.beleuramyhome.org.au/villa.php
villa.php:349 GET http://www.beleuramyhome.org.au/none 404 (Not Found)
Navigated to http://www.beleuramyhome.org.au/frontpage.php
In that villa.php on line 349 is the end of the page </html>
My questions are:
1) Why does the URL have an extra /none? Where is that from
2) The starting page - villa.php calls writelog.php with the following : http://www.beleuramyhome.org.au/writelo ... yvilla=221
But if I enter this call manually into the URL line : http://www.beleuramyhome.org.au/writelo ... yvilla=221 it works fine
Any idea?
Thanks
Re: Strange error
I do not see the error. I have tested in Chrome, FireFox and Edge.
Did you also try it in different browsers?
Did you also try it in different browsers?
Re: Strange error
OK, to see the error, please follow this steps
1) Start Chrome
2) Hit F12 to get into Debug mode
3) Then, copy and paste the url : http://www.beleuramyhome.org.au/
Can you see it now?
Thanks
1) Start Chrome
2) Hit F12 to get into Debug mode
3) Then, copy and paste the url : http://www.beleuramyhome.org.au/
Can you see it now?
Thanks
Re: Strange error
No, I do not see the error.
Re: Strange error
Do you get the same error if you remove all custom code?
Re: Strange error
Well, what is the point?
This is the home page of the website, It only has in it - WWB standard objects
I have no costum code on this page
Thanks
This is the home page of the website, It only has in it - WWB standard objects
I have no costum code on this page
Thanks
Re: Strange error
Sorry, but I do see custom code on this page.
Please remove all code you have added yourself.
Please remove all code you have added yourself.
Re: Strange error
It was in the master frame - I removed it already
But the problem is still there
Can you refresh the browser and check again
If you can still see any custom code, can you please point it out, maybe I miss something?
Cheers
But the problem is still there
Can you refresh the browser and check again
If you can still see any custom code, can you please point it out, maybe I miss something?
Cheers
Re: Strange error
Code: Select all
<script>
var flag = true;
var user = "";
var num = 365;// Set up cookie expiry for one year
// This gets executed only if no cookie was found
function getvilla() /// Through the OK click on the dialog
{
// Get the user input from the dialog
user = document.getElementById("Editbox1").value;
flag = false;
if (user!= "" && user!= null)
{
createCookie("beleura4", user, num);
window.location.href = "http://www.beleuramyhome.org.au/writelog.php?myvilla=" + user;
}
else // Go to the error page
{
window.location.href = "http://www.beleuramyhome.org.au/loginfail.php"
}
}
function createCookie(cookieName,cookieValue,daysToExpire)
{
var date = new Date();
date.setTime(date.getTime()+(daysToExpire*24*60*60*1000));
document.cookie = cookieName + "=" + cookieValue + "; expires=" + date.toGMTString();
}
function accessCookie(cookieName)
{
var name = cookieName + "=";
var allCookieArray = document.cookie.split(';');
for(var i=0; i<allCookieArray.length; i++)
{
var temp = allCookieArray[i].trim();
if (temp.indexOf(name)==0)
{
return temp.substring(name.length,temp.length);
}
}
return "";
}
function checkCookie()
{
user = accessCookie("beleura4");
// This is first time visitor, cookie is not yet there
if (user == "")
{
// Bring up the dialog for user to enter the villa number (Thanks Pablo)
$("#entervilla").dialog("open");
if(flag) // Make the screen hold on, until visitor clicks OK
{
setTimeout(foo, 100);
}
} // else - cookie was found, go to the website
// pass the user / villa number into the php for processing - the PHP script will
// check the villa number validity / registration
var url = "http://www.beleuramyhome.org.au/writelog.php?myvilla=" + user;
//alert(url);
window.location.href = url;//"http://www.beleuramyhome.org.au/writelog.php?myvilla=" + user;
}
</script>
Re: Strange error
Also, on my computer there is no error.
Did you try it on another computer to make sure it's not just an issue of your browser?
Did you try it on another computer to make sure it's not just an issue of your browser?
Re: Strange error
That script you show, is no longer there - please refresh the browser
No, I will have to find another PC with Windows
Thanks for now
No, I will have to find another PC with Windows
Thanks for now
Re: Strange error
The code is still there
view-source:http://www.beleuramyhome.org.au/index.php
view-source:http://www.beleuramyhome.org.au/index.php
Re: Strange error
Hello again,
OK, after you pointed it out, I realized that the code was in index.php, not in frontpage.php
1) I tested it on another computer, the same error
2) I deleted ALL the custom code in index.php
3) Tried again, the same error
jquery-1.12.4.min.js:2 GET http://beleuramyhome.org.au/none 404 (Not Found)
You must have some magic at your end that this error doesn't show up
???
OK, after you pointed it out, I realized that the code was in index.php, not in frontpage.php
1) I tested it on another computer, the same error
2) I deleted ALL the custom code in index.php
3) Tried again, the same error
jquery-1.12.4.min.js:2 GET http://beleuramyhome.org.au/none 404 (Not Found)
You must have some magic at your end that this error doesn't show up
???
Re: Strange error
I have noticed this, in the page background CSS
Maybe this is related?
It looks like you have set the background mode to 'image' but did not selected an image.
Code: Select all
background-image: url(none);
It looks like you have set the background mode to 'image' but did not selected an image.
Re: Strange error
You are just MAGIC... That was it!
But, I am still unclear, why I had an error and you didn't?
Thanks Pablo
But, I am still unclear, why I had an error and you didn't?
Thanks Pablo