RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Problems / Error. Parsing request failed.
Posted:  06 Dec 2012 06:25
Since installing the lcmini.php in an iframe of my site a fair number of times this error has popped up. It stopped when I removed it and started again when I put it back it. It doesn't happen all the time.

The error is: Error. Parsing request failed.

See the screen shot.
http://www.eventsbyus.ca/images/parse-error.png

Any suggestions on a solution?

Thanks
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  06 Dec 2012 11:21   Last Edited By: Roel B.
Dan, this error message is not produced by the LuxCal calendar and I've never seen this before.
The strange thing is that it's not a PHP parsing error (a PHP parsing error always displays the reason as well), but it is a parsing request error.
I don't know if you have access to the error logs on your server, but it would be worthwhile to have a look and see if there are more details in the error log.
Roel
Posted:  06 Dec 2012 12:29   Last Edited By: Roel B.
Hi Roel,

I think I have fixed it (thanks to an earlier tip from you).

Originally I had...

Code:


<iframe id="lcmini" src="http://www.eventsbyus.ca/london/lcmini.php" height="250" width="170"></iframe>


Which I changed to....

Code:


<iframe id="lcmini" src="http://www.eventsbyus.ca/london/lcmini.php" height="100%" width="90%"></iframe>


Thanks
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  06 Dec 2012 15:26
Darn, I thought I had it fixed but it just came up again. sad
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  06 Dec 2012 18:48   Last Edited By: Roel B.
Officially the height and width specified within an iframe tag are always in pixels, so you first code is correct.
However, if you serve your pages as HTML5, both height an width are not supported any more. See w3schools
It's always better to specify the height and width of your iframe via the styles sheet.

Does your parsing request error pop up at random, or is it linked to a certain action?
Posted:  07 Dec 2012 12:32
It's popping up at random. I even got it when I logged in on the admin side where the calendar doesn't show.

I noticed in the documentation the mini calendar is 200 x 200. Where I stuck it the calendar was too big so I set the size of the iframe.

I'll go over the documentation again and see about updating the style sheet directly.

You know how it is, so many things on the go and to do and so little time. You concentrate on the biggest issues first. wink

Thanks
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  07 Dec 2012 15:11   Last Edited By: Roel B.
The Parsing request error message is a JavaScript message, so it is produced locally on your computer.
I don't know if you have added the JavaScript function, to automatically re-size the mini calendar, to the head-section of the parent page. If so, you could try to remove this and see if the error disappears.

The LuxCal documentation doesn't say much about where to specify height and width. What I mean is that the iframe-tags are part of your parent page, so in your parent page's styles sheet there should be something like:

Code:


#lcmini {
height:250px;
width:170px;
}

and then the height and width can be removed from the iframe statement:

Code:


<iframe id="lcmini" src="http://www.eventsbyus.ca/london/lcmini.php"></iframe>