WordPress.org

Ready to get started?Download WordPress

Forums

HTML Import 2
[resolved] Fatal error: Cannot redeclare class WP_Feed_Cache (6 posts)

  1. arunkw
    Member
    Posted 1 year ago #

    Fatal error: Cannot redeclare class WP_Feed_Cache in /home/arunkw/public_html/wp

    I am getting error when I press Import button what might be wrong?

    http://wordpress.org/extend/plugins/import-html-pages/

  2. arunkw
    Member
    Posted 1 year ago #

    I am teacher and I have a desktop s/w to make a Multiple choice quiz; This s/w make quiz in html files. Which I want to use it on my wordpress site. When try to import using import button I get error Cannot redeclare class WP_Feed_Cache. What might be the problem please help me. I was able to pull these HTML files in my earlier ASP.NET based site easily. Why is it so difficult in wordpress?

  3. Stephanie Leary
    Member
    Plugin Author

    Posted 1 year ago #

    WP_Feed_Cache has absolutely nothing to do with the import plugin. My guess is that you have some other plugin that is causing problems, or your WordPress core files are corrupted somehow -- I often see weird errors relating to core functions when the wp-includes directory hasn't been completely uploaded or updated.

  4. arunkw
    Member
    Posted 1 year ago #

    Thanks Stephanie, I am no longer getting the above error.
    But when I import my html files, wordpress posts are created but with zero content. I am using select content by->tag->body.
    my html files are having JavaScript along with html content, these java script are the one which generates questions for my MCQ.

    Here is a sample file IT for Mgmt QuizQ1.html

    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">
    <META name="Author" content="Produced by Prof Arun Kumar V Waghchoure using Galli's QuizFaber 2.12.2">
    <META name="generator" content="Galli's QuizFaber 2.12.2">
    <META name="keywords" content="quiz">
    <META name="description" content="IT for Management Quiz - For Welingkar Diploma Students">
    <TITLE>Quiz</TITLE>
    <STYLE>
    <!--
    .cardShow  { display: block; position:absolute; color:#000000; background:#FFFFE0; }
    .cardHide  { display: none;  position:absolute; }
    .checkShow { display: block; position:relative; }
    .checkHide { display: none;  position:absolute; }
    .spaceShow { display: block; position:relative; }
    .spaceHide { display: none;  position:absolute; }
    A { text-decoration:none }
    .UStyle { text-decoration :none}
    .tooltipHide,.tooltipShow { font-family:Arial; font-size:8pt; color:#000000; background:#FFFF00; position:absolute; }
    .tooltipShow { display: block; }
    .tooltipHide { display: none;  }
    .okButtonClass { display: block;  }
    .okButtonHidden { display: none;  }
    -->
    </STYLE>
    
    <SCRIPT LANGUAGE='JavaScript'>
    <!--
     var currPage = 0;
    function startQuiz() {
      var status;
    
      parent.Constructor();
      window.focus();
      parent.UnmanageAllDialogs();
      parent.init_valid();
      parent.oldtime=parent.StartTime();
      parent.Timer();
      if (parent.n_repeat==0) parent.initShortQuestion();
      parent.end_test=0;
    }
    
    function GoNextQuestion()
    {
      if (parent.valid[12]==0) {
        if (window.confirm('Confirm your answer ?')) {
          if (Domanda13()) return 1;
        }
      } else return 1;
      return 0;
    }
    function EndTestSkip() {
    if (parent.end_test==1) {
     if (parent.valid[12]==0) {
       parent.allAnsReport[12] = new initValuate13();
       parent.doValuate(12,document.domanda.score13,document.domanda.risposta13);
       location.href = "IT for Mgmt QuizQ2.htm";
     }
     }
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY  BGCOLOR='#FFFFFF'  TEXT='#000000' OnLoad='startQuiz()'>
    <SCRIPT LANGUAGE='JavaScript'>
    <!--
    if (parent.n_repeat==0) {
      parent.keyword = "syskey";
      parent.MakeKeyCode();
    }
    //-->
    </SCRIPT>
    <CENTER>
    <FONT style='font-family:Verdana; font-size:12pt; '>Welinkgar Institute of Management</FONT><BR>
    <FONT style='font-family:Verdana; font-size:12pt; font-weight:bold;'>IT for Management Quiz - For Welingkar Diploma Students</FONT><BR>
    <BR>
    <FONT style='font-family:Verdana; font-size:12pt; '>Prof Arun Kumar V Waghchoure</FONT><BR>
    <FONT style='font-family:Verdana; font-size:12pt; '>2009</FONT><BR>
    </CENTER>
    <HR WIDTH='80%'>
    <P><CENTER><TABLE WIDTH='80%'>
    <TD ALIGN=LEFT>
    <FONT style='font-family:Verdana; font-size:10pt; color:#000000; '>This Quiz is created for the Subject IT for Management<BR>It has 50 MCQs which needs to be answered in 30 Min.<BR><BR>In Case if you are not able to see the Q&A properly or if the timer at the footer is not workking properly user another Internet browser such as Firefox, or IE.<BR><BR>Best of Luck for Your Final Exam</FONT></TD></TABLE></CENTER>
    <P>
    <HR WIDTH='80%'>
    <FORM NAME='domanda'><SCRIPT LANGUAGE='JavaScript'>
    <!--
    function initValuate13()
    {
      this.length = 3;
      var i,j,n,m,a,b,num;
      var choice,valuation,data;
      for (i=0; i<ordineLeft12.length*2; i+=2) {
        n = parent.getSelezione(document.domanda.select12[i]);
        m = parent.getSelezione(document.domanda.select12[i+1]);
        a = ordineLeft12[n];
        b = ordineRight12[m];
        choice = new parent.init_array(2);
        choice.length = 2;
        choice[0]=listaLeft12[a]
        choice[1]=listaRight12[b];
        num=0;
        for (j=0; j<listaLeft12.length; j++)
          if (listaLeft12[j]==listaLeft12[a]) num++;
        valuation = new parent.init_array(num);
        valuation.length = num;
        num=0;
        for (j=0; j<listaLeft12.length; j++)
          if (listaLeft12[j]==listaLeft12[a]) { valuation[num]=listaRight12[j]; num++; }
        this[i/2] = new parent.AnsReport(choice,valuation,'',0);
      }
     parent.pesi[12]=parent.DecodeNumber(19,12,0,99);
    
    }
    
    function Domanda13()
    {
     var status;
     parent.allAnsReport[12] = new initValuate13();
     parent.doValuate(12);
     var spaceObj = parent.frames.quiz_main.document.getElementById("space13");
     spaceObj.className='spaceShow';
     parent.PrintBooleanAnswer(12,0);
     return 1;
    }
    
    //-->
    </SCRIPT>
    <CENTER><TABLE WIDTH=80%><TD>
    <IMG SRC="media/check.gif" CLASS='checkHide' ID='check12' ALIGN='LEFT'>
    <A NAME='qstAnchor12'>
    </A>
    <FONT style='font-family:Arial; font-size:14pt; '>question 1</FONT><TABLE WIDTH=400 BORDER=3 ID='hideAns' CELLSPACING=0 CELLPADDING=4 CLASS='cardHide'>
    <TR><TD ID='hideTxt' ALIGN='CENTER'></TD></TR>
    </TABLE>
    <P>
    <FONT style='font-family:Verdana; font-size:10pt; '>Match the column</FONT>
    <P>
    </TABLE></CENTER>
    <DIV CLASS='spaceHide' ID='space13'><BR><BR><BR></DIV>
    <CENTER><TABLE WIDTH=80%>
    <SCRIPT LANGUAGE='JavaScript'>
    <!--
    function creaListaLeft12() {
      this.length = 3;
     this[0] = unescape(parent.DecodeString(" 84141133"));
     this[1] = unescape(parent.DecodeString(" 98135132126"));
     this[2] = unescape(parent.DecodeString(" 96 97 85"));
    }
    function creaListaRight12() {
      this.length = 3;
     this[0] = unescape(parent.DecodeString(" 85135128120105123134139 50107112132 50128115124104143115138119 42103135127136129120105134134139 50 55 36135128 56134114105 56 95135134114105138 50122129107118124"));
     this[1] = unescape(parent.DecodeString(" 85135128120105123134 56115118112 56119144134111118134115132 50110105142123123119125 36 69 50 97128122121140 65135135126116141134 56118111122129117125133 42101134118 56133126115138115127119 42104125136129117111119"));
     this[2] = unescape(parent.DecodeString(" 85135128120105123134 56117121113136135140119124119"));
    }
      var listaLeft12   = new creaListaLeft12();
      var listaRight12  = new creaListaRight12();
      var ordineLeft12  = new parent.determinaOrdineIniziale(listaLeft12.length);
      var ordineRight12 = new parent.determinaOrdineIniziale(listaRight12.length);
    parent.creaMatching (parent.frames.quiz_main.document,listaLeft12,listaRight12,ordineLeft12,ordineRight12,'select12',1);
    //-->
    </SCRIPT>
    </TABLE></CENTER>
    <P><CENTER>
    <SPAN id='okButtonId' class='okButtonClass'><INPUT TYPE='button' VALUE='OK' onClick="if (Domanda13()==1) location.href='IT for Mgmt QuizQ2.htm'" style='font-family:Verdana; font-size: 10pt'></SPAN></CENTER>
    <BR><CENTER><TABLE WIDTH=80%><TR>
    </TR></TABLE></CENTER>
    </FORM>
    </BODY>
    </HTML>
  5. Stephanie Leary
    Member
    Plugin Author

    Posted 1 year ago #

    The importer won't be able to read any data generated by JavaScript. It reads text straight out of the files; it does not run them in the browser.

  6. arunkw
    Member
    Posted 1 year ago #

    Thanks for the help stephanie, lets close this thread :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags