Css error (Need urgent help)

Dev

Member
Hello,

My website today has just started behaving wired..

http://www.adminforum.org/

I checked my css file on live website in source and it is inaccessible. I don`t know what the problem is.
Can someone help me in this?

I am using cloudflare.
 

Jake Bunce

XenForo moderator
Staff member
Can you disable cloudflare for css.php? I don't think you want that resource on a CDN.

Or you can disable cloudflare completely or contact their support regarding the http 502 error.
 

Jake Bunce

XenForo moderator
Staff member
Now I am getting:

An unexpected error occurred. Please try again later.
Is there anything in the log?

Admin CP -> Tools -> Server Error Log

Otherwise enable debug mode by adding this line to the library/config.php file:

Code:
$config['debug'] = 1;
That should reveal a more detailed error message on css.php.
 

Dev

Member
On checking the logs. I found the problem. It was due to widget framework . Specificaly due to users online widget.

This is the error log.

Code:
Error Info
ErrorException: Undefined index: visitor - library/WidgetFramework/WidgetRenderer/OnlineUsers.php:34
Generated By: Unknown Account, 9 minutes ago
Stack Trace
 
#0 /home/xxxx/public_html/library/WidgetFramework/WidgetRenderer/OnlineUsers.php(34): XenForo_Application::handlePhpError(Array, 'all', Array, Object(XenForo_Template_Public))
#1 /home/xxxx/public_html/library/WidgetFramework/WidgetRenderer.php(421): WidgetFramework_WidgetRenderer_OnlineUsers->_render(Array, 'all', Array, Object(XenForo_Template_Public), '')
#2 /home/xxxx/public_html/library/WidgetFramework/Core.php(189): WidgetFramework_WidgetRenderer->render('all', Array, Object(XenForo_Template_Public), '')
#3 /home/xxxx/public_html/library/WidgetFramework/Core.php(146): WidgetFramework_Core->_renderWidgetsFor('facebook.css', Array, Object(XenForo_Template_Public), Array)
#4 /home/xxxx/public_html/library/WidgetFramework/Listener.php(20): WidgetFramework_Core->renderWidgetsFor('facebook.css', '/** Facebook **...', Array, Object(XenForo_Template_Public))
#5 [internal function]: WidgetFramework_Listener::template_post_render(Array, Array)
#6 /home/xxxx/public_html/library/XenForo/CodeEvent.php(54): call_user_func_array('template_post_r...', Array)
#7 /home/xxxx/public_html/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire()
#8 /home/xxxx/public_html/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#9 /home/xxxx/public_html/library/XenForo/CssOutput.php(263): XenForo_Template_Public->render(Array, false)
#10 /home/xxxx/public_html/library/XenForo/CssOutput.php(209): XenForo_CssOutput::renderCssFromObjects()
#11 /home/xxxx/public_html/library/XenForo/CssOutput.php(582): XenForo_CssOutput->renderCss()
#12 /home/xxxx/public_html/css.php(12): XenForo_CssOutput::run()
#13 {main}
 
Request State
 
array(3) {
  ["url"] => string(175) "http://www.adminforum.org/css.php?css=facebook,login_bar,node_category,node_forum,node_link,node_list,panel_scroller,sidebar_share_page,wf_default&style=1&dir=LTR&d=1342624170"
  ["_GET"] => array(4) {
    ["css"] => string(108) "facebook,login_bar,node_category,node_forum,node_link,node_list,panel_scroller,sidebar_share_page,wf_default"
    ["style"] => string(1) "1"
    ["dir"] => string(3) "LTR"
    ["d"] => string(10) "1342624170"
  }
  ["_POST"] => array(0) {
  }
}
 
Top