Joomdle inserting PHP before DOCTYPE in Moodle

  • OverlordSquishy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 days ago - 13 years 4 days ago #1 by OverlordSquishy
Joomdle inserting PHP before DOCTYPE in Moodle was created by OverlordSquishy
Hello, helpful people.

I began testing our site today in a variety of browsers, and once again IE is deciding to throw a fit. IE is loading Moodle in quirks mode, so I took a look at Moodle's source code and it seems that Joomdle is, for some reason, inserting PHP into the source, before the DOCTYPE is declared. I know that's what's causing the problem, but I don't know how to fix it.

*********************************************************
<?
$string = 'Joomdle';
$string = 'This method uses Joomdle web services to know whether a user has a valid session in Joomla.Version 0.4';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
<html dir="ltr" lang="en" xml:lang="en" xmlns=" www.w3.org/1999/xhtml ">
<head>

*********************************************************

That's what the first few lines of Moodle's source code looks like. I am using Joomdle .82 and Moodle 2.2.7.

I'm going to continue looking into this issue on my own, but some guidance or solutions would be appreciated.

Many thanks.

Edit:

It seems that this is only a problem for people who authenticate via Joomdle. The lines before the DOCTYPE declaration aren't there when a guest is browsing the site.
Last edit: 13 years 4 days ago by OverlordSquishy. Reason: More information

Please Log in or Create an account to join the conversation.

More
13 years 4 days ago #2 by Antonio Durán
Replied by Antonio Durán on topic Joomdle inserting PHP before DOCTYPE in Moodle
Seems you are running a really old Joomdle version.

Maybe the short php tags are causing the problem. I would try upgrading to current release.

Please Log in or Create an account to join the conversation.

  • OverlordSquishy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 days ago #3 by OverlordSquishy
Replied by OverlordSquishy on topic Joomdle inserting PHP before DOCTYPE in Moodle
Thanks Antonio, I'll give that a shot.

Please Log in or Create an account to join the conversation.

  • OverlordSquishy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 days ago #4 by OverlordSquishy
Replied by OverlordSquishy on topic Joomdle inserting PHP before DOCTYPE in Moodle
I installed the latest release of Joomdle, 0.91. I am still getting the same output before the DOCTYPE declaration in all pages in Moodle.

I've run Joomdle in a couple different configurations and never saw this issue. Kinda puzzling.

Please Log in or Create an account to join the conversation.

  • OverlordSquishy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 3 days ago #5 by OverlordSquishy
Replied by OverlordSquishy on topic Joomdle inserting PHP before DOCTYPE in Moodle
I solved the problem.

It was associated with the jsgroup mod in Moodle, which does indeed use the shorthand PHP tag.

Thanks for pointing me in the right direction.

Please Log in or Create an account to join the conversation.

More
13 years 3 days ago #6 by Antonio Durán
Replied by Antonio Durán on topic Joomdle inserting PHP before DOCTYPE in Moodle
Great, thanks for the feedback. I guess your jsgroup module was also outdated, and you solved it by installing the new one?

Please Log in or Create an account to join the conversation.