Welcome, Guest
R0.25 No Longer Supported
  • Page:
  • 1
  • 2

TOPIC: Blank page, 404 error after login

Re: Blank page, 404 error after login 7 years 8 months ago #11

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
  • Karma: 158
Sorry but I only use Linux, and my Openoffice (quite old, yes, I have to upgrade :)) does not seem to render your doc properly.

If the change did not make any difference, try changing the url:
$redirect_url = "http://google.com";

To see if this is being reached at all.
The administrator has disabled public write access.

Re: Blank page, 404 error after login 7 years 8 months ago #12

  • Patrick Reid
  • Patrick Reid's Avatar
  • Offline
  • Karma: 0
OK, we are now getting somewhere. That redirects without the 404 error. I modified the landing page url to the full pharmacyschool.com.au address after this and it worked. However it now logs me in as admin, but I can't get to my Joomdle courses on the LMS as it returns to the landing page...
The administrator has disabled public write access.

Re: Blank page, 404 error after login 7 years 8 months ago #13

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
  • Karma: 158
I don't know what you men with "logs me in as admin". Are you trying with an admin user?
Are you sure you did not have another window open with admin logged in?
The administrator has disabled public write access.

Re:Blank page, 404 error after login 7 years 7 months ago #14

  • Patrick Reid
  • Patrick Reid's Avatar
  • Offline
  • Karma: 0
Sorry Antonio, I am not making myself very clear :(

I have uploaded some video showing what the problem is.

Video one: land.php set up as you asked with the redirect to the google.com homepage.
$redirect_url = "google.com";

Video two: land.php now with the pharmacyschool.com.au as the redirect address.
$redirect_url = "www.pharmacyschool.com.au";
You try to log in but it redirects back to the main page without having logged the user in. You log in again and this time is logs in OK. BUt you cannot access myJoomdle courses from the page.

Video three: you can however directly link through to a moodle course or quiz as with the example shown where the quiz is hyperlinked to the page, showing Jane Doe as the logged in moodle student. I am not sure what is going on.





I also noticed at the bottom of my joomla pages, underneath the actual page, a whole lot of other code etc:

Profile Information
Application afterLoad: 0.000 seconds, 0.39 MB
Application afterInitialise: 0.091 seconds, 8.18 MB
Application afterRoute: 0.097 seconds, 8.96 MB
Application afterDispatch: 0.138 seconds, 11.34 MB
Application afterRender: 1.161 seconds, 14.37 MB
Memory Usage
15185536
22 queries logged
SELECT *
FROM jos_session
WHERE session_id = 'ff041be7d520efd67d19143c8ec2a13b'
DELETE
FROM jos_session
WHERE ( time < '1285137843' )
SELECT *
FROM jos_session
WHERE session_id = 'ff041be7d520efd67d19143c8ec2a13b'
UPDATE `jos_session`
SET `time`='1285138743',`userid`='63',`usertype`='Registered',`username`='jane',`gid`='18',`guest`='0',`client_id`='0',`data`='__default|a:9:{s:15:\"session.counter\";i:2;s:19:\"session.timer.start\";i:1285138383;s:18:\"session.timer.last\";i:1285138383;s:17:\"session.timer.now\";i:1285138399;s:22:\"session.client.browser\";s:229:\"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; AskTB5.6)\";s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";s:2:\"63\";s:4:\"name\";s:8:\"Jane Doe\";s:8:\"username\";s:4:\"jane\";s:5:\"email\";s:15:\"jane@acp.edu.au\";s:8:\"password\";s:65:\"757aed75fddeb00b477d29e559693d8a:QEKFv9YWaxIaLhugmfZFsSbhdjkLPfxx\";s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";s:10:\"Registered\";s:5:\"block\";s:1:\"0\";s:9:\"sendEmail\";s:1:\"0\";s:3:\"gid\";s:2:\"18\";s:12:\"registerDate\";s:19:\"2010-09-06 12:44:40\";s:13:\"lastvisitDate\";s:19:\"2010-09-22 06:53:02\";s:10:\"activation\";s:0:\"\";s:6:\"params\";s:64:\"admin_language=\nlanguage=\neditor=tinymce\nhelpsite=\ntimezone=10\n\n\";s:3:\"aid\";i:1;s:5:\"guest\";i:0;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:66:\"/home/phph3220/public_html/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":5:{s:14:\"admin_language\";s:0:\"\";s:8:\"language\";s:0:\"\";s:6:\"editor\";s:7:\"tinymce\";s:8:\"helpsite\";s:0:\"\";s:8:\"timezone\";s:2:\"10\";}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}s:13:\"session.token\";s:32:\"f84584c3628007d180a5a92599190ecb\";s:17:\"application.queue\";a:1:{i:0;a:2:{s:7:\"message\";N;s:4:\"type\";s:7:\"message\";}}}'
WHERE session_id='ff041be7d520efd67d19143c8ec2a13b'
SELECT *
FROM jos_components
WHERE parent = 0
SELECT folder AS type, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 1
ORDER BY ordering
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 1)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT lms_config_value AS value, lms_config_var
FROM `jos_lms_config`
WHERE lms_config_var = 'plugin_forum' OR lms_config_var = 'forum_path' OR lms_config_var = 'plugin_lpath_forum'
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 1
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2010-09-22 06:59:03' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2010-09-22 06:59:03' )
ORDER BY f.ordering
LIMIT 0, 9
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 1
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2010-09-22 06:59:03' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2010-09-22 06:59:03' )
ORDER BY f.ordering
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 1
AND m.client_id = 0
AND ( mm.menuid = 1 OR mm.menuid = 0 )
ORDER BY position, ordering
SELECT guest, usertype, client_id
FROM jos_session
WHERE client_id = 0
SELECT *
FROM jos_banner
WHERE showBanner = 1
AND (imptotal = 0 OR impmade < imptotal)
AND cid = 1
AND catid = 14
ORDER BY sticky DESC, ordering
LIMIT 0, 4
SELECT session_id
FROM jos_session
WHERE userid ='63'
SELECT *
FROM jos_swmenufree_config
WHERE id = 1
SELECT jos_content.*

FROM jos_content

INNER JOIN jos_categories
ON jos_content.catid = jos_categories.id

AND jos_content.state = 1

AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2010-09-22 12:59:04' )

AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2010-09-22 12:59:04' )

ORDER BY jos_content.catid,jos_content.ordering
SELECT jos_categories.*

FROM jos_categories

WHERE jos_categories.published = 1

ORDER BY jos_categories.ordering
SELECT jos_menu.*

FROM jos_menu

WHERE jos_menu.menutype = 'mainmenu'
AND published = '1'

ORDER BY parent, ordering
SELECT *
FROM jos_community_config
WHERE name = 'config'
SELECT *, RAND() AS ordering
FROM jos_banner
WHERE showBanner = 1
AND (imptotal = 0 OR impmade < imptotal)
ORDER BY sticky DESC, ordering
LIMIT 0, 1
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 10
INSERT INTO jos_bannertrack ( track_type, banner_id, track_date )
VALUES ( 1, 10, '2010-09-22' )
0 legacy queries logged
Language Files Loaded
/home/phph3220/public_html/language/en-GB/en-GB.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.plg_system_debug.ini 1
/home/phph3220/public_html/administrator/language/en-GB/en-GB.plg_system_jcemediabox.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.com_content.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.plg_content_pagebreak.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.tpl_acptheme6.ini
/home/phph3220/public_html/language/en-GB/en-GB.mod_syndicate.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_login.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_whosonline.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_banners.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_breadcrumbs.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_joomdle_courses.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_joomdle_calendar.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_joomdle_my_courses.ini 1
/home/phph3220/public_html/language/en-GB/en-GB.mod_swmenufree.ini
/home/phph3220/public_html/language/en-GB/en-GB.mod_jomsocial_fb_likebox.ini
Untranslated Strings Diagnostic
NoneUntranslated Strings Designer
None
The administrator has disabled public write access.

Re:Blank page, 404 error after login 7 years 7 months ago #15

  • Patrick Reid
  • Patrick Reid's Avatar
  • Offline
  • Karma: 0
Forgot I turned debug on ;-%
I forgot to add that when I click on myJoomdle courses with the google redirect, it is going to google.com when you click this.
The administrator has disabled public write access.

Re:Blank page, 404 error after login 7 years 7 months ago #16

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
  • Karma: 158
Hi.

What you describe is normal: SSO is working, as you can go directly to moodle and be logged in.

What is failing is the redirection: you changed code, to redirect always to your site, so that is why it is not working.
When you click on a course link, it is supposed to redirect you to the moodle page for the course,but as you hardcoded to go always to your main site, this does not happen.

So, I really don't know, if it works putting the hardcoded url, why it does not work without it.

Try removing the hardcoded url, and leaving it as it was.
Then add:
echo $redirect_url;
exit ();
before the redirect call.

to see what is being called....
The administrator has disabled public write access.
  • Page:
  • 1
  • 2