simplecache not loading javascript files

Hi,

I've installed a new copy of elgg 1.5rc1 on GoDaddy:

  1. copied tar.gz file
  2. created a new db
  3. made it all working with default settings

For some reason all javascript functionality is not working. On my local xamp installation everything works, so I guess it has something to do with the godaddy environment.

When viewing the source I noticed that the links in the header are cached using the new simplecache. In addition new loaded profile images are shown as broken images as well (also going through the caching mechanism),

Any help will be appreciated,

Guy

  • i can't help it - blame it on the quality of my genepool ! I'm an ĕlgghead ;-)

  • Guys need some help.

    Suddenly my site css and js not working. When i turn on simple cache the CSS loads but JS in not working at all. I never had issues on the server before. When i turn off simple cache then CSS and JS dont work.

    Header looks like this

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">   <head>   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />   <title>BioVoice</title>     <script type="text/javascript" src="http://www.apps.my/bioc2009/vendors/jquery/jquery-1.2.6.pack.js"></script>   <script type="text/javascript" src="http://www.apps.my/bioc2009/vendors/jquery/jquery-ui-personalized-1.5.3.packed.js"></script>   <script type="text/javascript" src="http://www.apps.my/bioc2009/_css/js.php?js=initialise_elgg&viewtype=default"></script>   <!-- include the default css file -->   <link rel="stylesheet" href="http://www.apps.my/bioc2009/_css/css.php?lastcache=1253072714&viewtype=default" type="text/css" />     <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.apps.my/bioc2009/?view=rss" />   <link rel="alternate" type="application/odd+xml" title="OpenDD" href="http://www.apps.my/bioc2009/?view=opendd" />           <script type="text/javascript">     jQuery(document).ready(function($) {     $('a[rel*=facebox]').facebox()     });     </script>     <script type="text/javascript" src="http://www.apps.my/bioc2009/mod/embed/jquery.form.js"></script> <script type="text/javascript" src="http://www.apps.my/bioc2009/mod/roundedprofile/vendors/corner/cvi_corners_lib.js"></script>     <script type="text/javascript">   jQuery(document).ready(function(){     if(jQuery('img[src*=icondirect.php]').length>0 || jQuery('img[src*=defaultlarge]').length>0)   {   aRadius = {'topbar':'2','tiny':'5','small':'7','medium':'12','large':'6','master':'6'};     }     setInterval("roundedImages()",500);       })       function roundedImages(){   jQuery('img[src*=icondirect.php]').each(function(){   roundedImage(jQuery(this)[0]);   });     jQuery('img[src*=defaultlarge]').each(function(){   roundedImage(jQuery(this)[0]);   });   }     function roundedImage(oImg){   src = oImg.src;   size = src.match(/size=([\w]+)/);   if(!size)   {   size = 'small';   radius = 6;   }else   {   radius = aRadius[size[1]];   }     img_5538 = oImg;   setTimeout("setRounded(img_5538," + radius + ")",1000);   }       function setRounded(oId, iRadius){     //cvi_corners.add(oId,{'xradius': iRadius});   cvi_corners.add(oId,{'xradius': 8});     }     </script>   <script type="text/javascript" src="http://www.apps.my/bioc2009/mod/izap_videos/views/default/izap_videos/izap.js"></script></head>     <body>

  • 2 questions - first who is the host, two have you cleared the simplecache and you browser cache to see if it is holding bad views?

  • Yes I have done both.

    Host is exabytes. It was working ok before.

    Now once i turn off embed plugin Javascrip works.

    But again if i turn off simple cache, the CSS and Javascript dont work although embed is disabled.

  • I would start with disabling/enabling plugin since you said disabling embed brought function back, you probably have a conflict with plugins.  Posting you list of plugins may help us point you in the right direction.

  • Hi, Here is the list. When i disable simple cache as im still in the midst of modyfying etc. The CSS dissapears

     

    elggchat [Settings]
    twitterservice
    file
    messageboard
    logbrowser
    categories
    friends
    crontrigger
    logrotate [Settings]
    garbagecollector [Settings]
    messages
    defaultwidgets
    uservalidationbyemail
    profile
    reportedcontent
    pages
    thewire
    bookmarks
    diagnostics
    blog
    invitefriends
    notifications
    externalpages
    twitter
    groups
    custom_index
    event_calendar [Settings]
    videolist
    friend_request
    online
    poll
    roundedprofile
    tidypics [Settings]
    customspotlight
    ad
    weather
    walltowall
    autodash
    simplepie [Settings]
    tabbed_dashboard
    profile_counter
    izap_videos [Settings]
    draggable_widgets
    people_you_might_know
    friends_of_friends [Settings]
    recentdiscussions
    custom_profile_fields
    survey
    userexpo
    userpoints [Settings]
    userpoints_standard [Settings]
    gifts [Settings]
    badges [Settings]
    blogextendedEXcats
    members
    crossial
    zaudio
    vazco_avatar [Settings]
    tinymce
    embed (disabled)

  • @M.C.  that's quit a list.  Am I correct that all are Enabled?  If so here is what works for me.  First elgg will place the news plugins at the bottom by default, start by disabling each one at a time, dumping the simplecache and starting simple cache back up each time.

    Now I can tell you you may have some plugins located wrong, example is to keep like minded plugin together like blog and place blogextended just below it.  walltowall just under messageboard, I group all my profile related plugin together.  Keep custom_index either very top or very bottom.

    I understand a lot of plugin developers say to place the plugin at the bottom, but not every plugin can have this position.

    Make sure garbagecollector and logrotate are set to weekly and force a cron clean up.  www.xxxxxx.com/pg/cron/weekly.

    Now my advice is do as I say not as I do because you have so many plugin I would conside which ones you realy need, your site will be much faster.

    Hope this helps

  • Hi Goofbucket

    Thank you for helping me. I tried the cron and minue i turn off the simple cache, all css goes off.

    I disabled all plugins and its still the same.

    image

    Strange its happening with all plugins disabled.

    The minute i click enable simple cache, site loads normally

    Im debugging and making changes so i need to disable caching

    What could be the issue

  • so your java is back, and yes this is an issue with simplecache, and I am sorry but probably over my head. Do a search on simple cache and you should find the right thread with the right people.  sorry I could not help more.