Install Issue

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Install Issue

Post by Adds »

Hi,

Can anyone help me to resolve this issue I have installed this via RVSite Builder at the following location http://randa-discos.co.uk/fqas/faqweb/index.php but for some reason it does not load it shows the following error message:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Sat, 28 Mar 2009 13:31:19 UTC


Message: Object required
Line: 60
Char: 5
Code: 0
URI: http://randa-discos.co.uk/fqas/faqweb/i ... nctions.js



Does anyone know what this means and how I can resolve it?

Thanks,
Adam.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

as a temporary fix you can change this part in template/index.tpl:

From

Code: Select all

<body dir="{dir}" onload="javascript:focusOnSearchField();">
to

Code: Select all

<body dir="{dir}">
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Re: Install Issue

Post by Adds »

Thanks but that dont seem to have fixed it?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

please remove the following code from inc/js/functions.js:

Code: Select all

function focusOnSearchField()
{
    if (document.getElementById('searchfield')) {
        document.getElementById('searchfield').focus();
    }
    if (document.getElementById('suchbegriff')) {
        document.getElementById('suchbegriff').focus();
    }
    if (document.getElementById('instantfield')) {
        document.getElementById('instantfield').focus();
    }
}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Re: Install Issue

Post by Adds »

Not sure what you mean, this is the code:

Code: Select all

/**
 * Some JavaScript functions used in the admin backend
 *
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @author    Periklis Tsirakidis <tsirakidis@phpdevel.de>
 * @author    Matteo Scaramuccia <matteo@scaramuccia.com>
 * @author    Minoru TODA <todam@netjapan.co.jp>
 * @author    Lars Tiedemann <php@larstiedemann.de>
 * @since     2003-11-13
 * @copyright 2003-2008 phpMyFAQ Team
 * @version   CVS: $Id: functions.js,v 1.4.2.5 2008/01/20 16:22:26 thorstenr Exp $
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 */

function Picture(pic,title,width,height)
{
    popup = window.open(pic, title, 'width='+width+', height='+height+', toolbar=no, directories=no, status=no, scrollbars=no, resizable=yes, menubar=no');
    popup.focus();
}

function checkAll(checkBox)
{
    var v = checkBox.checked;
    var f = checkBox.form;
    for (var i = 0; i < f.elements.length; i++) {
        if (f.elements[i].type == "checkbox") {
            f.elements[i].checked = v;
            }
        }
}

function addEngine(uri, name, ext, cat)
{
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {
        window.sidebar.addSearchEngine(uri+"/"+name+".src", uri+"/images/"+name+"."+ext, name, cat);
    } else {
        alert('Mozilla Firefox, Mozilla or Netscape 6 or later is needed to install the search plugin!');
    }
}

function focusOnUsernameField()
{
    if (document.getElementById('faqusername')) {
        document.getElementById('faqusername').focus();
    }
}

function focusOnSearchField()
{

    if (document.getElementById('rvsAdvancedSearchControl').style.display != 'none' && document.getElementById('searchfield')) {
        document.getElementById('searchfield').focus();
    }
    
    if (document.getElementById('suchbegriff')) {
        document.getElementById('suchbegriff').focus();
    }
    if (document.getElementById('instantfield')) {
        //document.getElementById('instantfield').focus();
    }
}

/**
 * showhideCategory()
 *
 * Displays or hides a div block
 *
 * @param    string
 * @return   void
 * @access   public
 * @since    2006-03-04
 * @author   Thorsten Rinne <thorsten@phpmyfaq.de>
 */
function showhideCategory(id)
{
    if (document.getElementById(id).style.display == 'none') {
        document.getElementById(id).style.display = 'block';
    } else {
        document.getElementById(id).style.display = 'none';
    }
}

/**
* deletes all options from given select-object.
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param select
* @return void
*/
function select_clear(select)
{
    while (select.length > 0) {
        select.remove(0);
    }
}

/**
* adds an option to the given select-object.
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param select node
* @param string
* @param text node
* @param string
* @return void
*/
function select_addOption(select, value, content, classValue)
{
    var opt;
    opt = document.createElement("option");
    opt.value = value;
    if (classValue) {
        opt.className = classValue;
    }
    opt.appendChild(content);
    select.appendChild(opt);
}

/**
* selects all list options in the select with the given ID.
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param string
* @return void
*/
function select_selectAll(select_id)
{
    var select_options = document.getElementById(select_id).options;
    for (var i = 0; i < select_options.length; i++) {
        select_options[i].selected = true;
    }
}

/**
* unselects all list options in the select with the given ID.
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param string
* @return void
*/
function select_unselectAll(select_id)
{
    var select_options = document.getElementById(select_id).options;
    for (var i = 0; i < select_options.length; i++) {
        select_options[i].selected = false;
    }
}

/**
 * checks all checkboxes in form with the given ID.
 *
 * @access  public
 * @author  Lars Tiedemann, <php@larstiedemann.de>
 * @param   string
 * @return  void
 */
function form_checkAll(form_id)
{
    var inputElements = document.getElementById(form_id).getElementsByTagName('input');
    for (var i = 0, ele; ele = inputElements[i]; i++) {
        if (ele.type == "checkbox") {
            ele.checked = true;
        }
    }
}

/**
 * unchecks all checkboxes in form with the given ID.
 *
 * @access  public
 * @author  Lars Tiedemann, <php@larstiedemann.de>
 * @param   string
 * @return  void
 */
function form_uncheckAll(form_id)
{
    var inputElements = document.getElementById(form_id).getElementsByTagName('input');
    for (var i = 0, ele; ele = inputElements[i]; i++) {
        if (ele.type == "checkbox") {
            ele.checked = false;
        }
    }
}

/**
* returns the text content of a child element.
*
* When having a dom structure like this:
* <item id="1">
*   <name>Item Name</name>
*   <value>Text Value</value>
* </item>
* text_getFromParent(document.getElementById(1), "name")
* would return "Item Name".
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param Object select
* @return void
*/
function text_getFromParent(parentObject, childElement)
{
    var result = "";
    result = parentObject.getElementsByTagName(childElement)[0];
    if (result) {
        if (result.childNodes.length > 1) {
            return result.childNodes[1].nodeValue;
        } else {
            if (result.firstChild) {
                return result.firstChild.nodeValue;
            } else {
                return "";
            }
        }
    } else {
        return "n/a";
    }
}

/**
* deletes all rows from given table-object.
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param table
* @return void
*/
function table_clear(table)
{
    while (table.rows.length > 0) {
        table.deleteRow(0);
    }
}

/**
* inserts a new row into the given table at the given position.
*
* @access public
* @author Lars Tiedemann, <php@larstiedemann.de>
* @param table
* @param int
* @param node
* @param node
* @return void
*/
function table_addRow(table, rowNumber, col1, col2)
{
    var td1;
    var td2;
    var tr;
    td1 = document.createElement("td");
    td1.appendChild(col1);
    td2 = document.createElement("td");
    td2.appendChild(col2);
    tr = table.insertRow(rowNumber);
    tr.appendChild(td1);
    tr.appendChild(td2);
}

/**
* Function to get a pretty formatted output of a variable
*
* NOTE: Just for debugging!
*
* @param    string
* @return   void
* @access   public
* @since    2005-12-26
* @author   Thorsten Rinne <thorsten@phpmyfaq.de>
*/
function pmf_dump(data)
{
    var s = '';
    for(idx in data){
        s += idx + '('+typeof data[idx]+'): ' + data[idx]+'\n';
    }
    document.write('<pre>' + s + '</pre>');
}

/**
* Hide a <div> container
*
* @param    string
* @return   void
* @access   public
* @since    2006-01-07
* @author   Thorsten Rinne <thorsten@phpmyfaq.de>
*/
function hide(id)
{
    document.getElementById(id).style.display = 'none';
}

/**
* Show a <div> container
*
* @param    string
* @return   void
* @access   public
* @since    2006-01-07
* @author   Thorsten Rinne <thorsten@phpmyfaq.de>
*/
function show(id)
{
    document.getElementById(id).style.display = 'block';
}
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

yes... remove the part I posted.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Re: Install Issue

Post by Adds »

Thanks for the reply, would you be able to paste the code I need so I can post it into the file and update is, as I'm not that good with things like this. Your support would be appreciated.

Many Thanks,
Adam.
Thorsten wrote:Hi,

yes... remove the part I posted.

bye
Thorsten
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Re: Install Issue

Post by Adds »

Ok
I have done that and now get the folowing error message:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1)
Timestamp: Mon, 30 Mar 2009 14:24:32 UTC


Message: Object expected
Line: 77
Char: 1
Code: 0
URI: http://randa-discos.co.uk/fqas/faqweb/index.php

what do I do now?
Thorsten wrote:Hi,

yes... remove the part I posted.

bye
Thorsten
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

I'll install IE8 and will do some tests.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

I installed IE8 on my virtual machine and I cannot reproduce your issue. You mentioned you installed phpMyFAQ via RVSite Builder. Please try a version from phpmyfaq.de.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Re: Install Issue

Post by Adds »

Thanks for your reply, I have it installed the way you said not with rvSite Builder it can be found here: http://randa-discos.co.uk/fqa/ that works ok but it does not have my site theme thats why I used RV Site Builder.

Is there away of putting my theme from my site into it?
Thorsten wrote:Hi,

I installed IE8 on my virtual machine and I cannot reproduce your issue. You mentioned you installed phpMyFAQ via RVSite Builder. Please try a version from phpmyfaq.de.

bye
Thorsten
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

you can put over your design using CSS and XHTML in the template-folder of phpMyFAQ.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Adds
Posts: 8
Joined: Sat Mar 28, 2009 2:27 pm

Re: Install Issue

Post by Adds »

Thanks for your reply, I'm lost now I have no idea on how to do that.................
Thorsten wrote:Hi,

you can put over your design using CSS and XHTML in the template-folder of phpMyFAQ.

bye
Thorsten
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Install Issue

Post by Thorsten »

Hi,

as you're using a webpage generation it's quite hard to give you a better solution than these both ways:

- ask RV Site Builder for fixing their version of phpMyFAQ

- learn XHTML and CSS for styling phpMyFAQ

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply