[campsite-users] Error when trying to set up a section for my publication
  • _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users
  • 4 Comments sorted by
  • hi Mark !

    can you send me the
    /usr/local/campsite/www-common/html/priv/sections/edit.php file
    please?



    On Nov 14, 2007 9:53 AM, Mark Corsi wrote:
    >
    >
    >
    >
    > I am receiving the following error message when I try to set up a section in
    > the publication:
    >
    >
    >
    >
    >
    > Error ID:
    >
    > 2:Campsite:2.7.0-rc4:editor_load_xinha.php:10
    >
    >
    > Software:
    >
    > Campsite
    >
    >
    > Error Message:
    >
    > Missing argument 3 for editor_load_xinha(), called in
    > /usr/local/campsite/www-common/html/priv/sections/edit.php on line 27 and
    > defined
    >
    >
    > Error Number:
    >
    > 2
    >
    >
    > Time:
    >
    > Wed, 14 Nov 2007 09:53:50 -0500
    >
    >
    > Backtrace: camp_report_bug() called at
    > [/usr/local/campsite/www-common/html/priv/articles/editor_load_xinha.php:10]
    > editor_load_xinha() called at
    > [/usr/local/campsite/www-common/html/priv/sections/edit.php:27]
    > require_once() called at [/usr/local/campsite/www-common/html/admin.php:107]
    >
    >
    >
    >
    >
    >
    >
    >
    > Any ideas?
    >
    >
    > _______________________________________________
    > campsite-users mailing list
    > campsite-users@lists.campware.org
    > http://lists.campware.org/mailman/listinfo/campsite-users
    >



    --
    /holman
    _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users
  • Here you go


    --------------------------------------------------------------------------
    require_once($_SERVER['DOCUMENT_ROOT'].
    "/$ADMIN_DIR/sections/section_common.php");
    require_once($_SERVER['DOCUMENT_ROOT'].
    "/$ADMIN_DIR/articles/editor_load_xinha.php");
    require_once($_SERVER['DOCUMENT_ROOT']. '/classes/Template.php');

    if (!$g_user->hasPermission('ManageSection')) {
    camp_html_display_error(getGS("You do not have the right to modify
    sections."));
    exit;
    }
    $Pub = Input::Get('Pub', 'int', 0);
    $Issue = Input::Get('Issue', 'int', 0);
    $Language = Input::Get('Language', 'int', 0);
    $Section = Input::Get('Section', 'int', 0);


    $publicationObj =& new Publication($Pub);
    $issueObj =& new Issue($Pub, $Language, $Issue);
    $sectionObj =& new Section($Pub, $Issue, $Language, $Section);
    $templates = Template::GetAllTemplates(array('ORDER BY' => array('Level' =>
    'ASC', 'Name' => 'ASC')));

    $topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj, 'Section'
    => $sectionObj);
    camp_html_content_top(getGS("Configure section"), $topArray);

    $url_args1 = "Pub=$Pub&Issue=$Issue&Language=$Language";
    $url_args2 = $url_args1."&Section=$Section";

    editor_load_xinha('cDescription', $g_user);

    ?>


    style="padding-top: 5px;">






    /left_arrow.png" BORDER="0"> ?> ?> /go_to.png" BORDER="0">














    /add.png" BORDER="0"> new section"); ?> ?>/duplicate.png" BORDER="0"> putGS("Duplicate"); ?> ?>/delete.png" BORDER="0"> putGS("Delete"); ?>

























































    :
    getSectionNumber()); ?>
    :
    value="getName())); ?>">
    :
    value="getUrlName())); ?>">
    :

    ?>:




    :

    :














    ------------------------------------------------------------

    -----Original Message-----
    From: campsite-users-bounces@netfinity-4.mdlf.org
    [mailto:campsite-users-bounces@netfinity-4.mdlf.org] On Behalf Of Holman
    Romero
    Sent: Wednesday, November 14, 2007 10:03 AM
    To: Mailing-list for all campsite users.
    Subject: Re: [campsite-users] Error when trying to set up a section for
    mypublication

    hi Mark !

    can you send me the
    /usr/local/campsite/www-common/html/priv/sections/edit.php file
    please?



    On Nov 14, 2007 9:53 AM, Mark Corsi wrote:
    >
    >
    >
    >
    > I am receiving the following error message when I try to set up a section
    in
    > the publication:
    >
    >
    >
    >
    >
    > Error ID:
    >
    > 2:Campsite:2.7.0-rc4:editor_load_xinha.php:10
    >
    >
    > Software:
    >
    > Campsite
    >
    >
    > Error Message:
    >
    > Missing argument 3 for editor_load_xinha(), called in
    > /usr/local/campsite/www-common/html/priv/sections/edit.php on line 27 and
    > defined
    >
    >
    > Error Number:
    >
    > 2
    >
    >
    > Time:
    >
    > Wed, 14 Nov 2007 09:53:50 -0500
    >
    >
    > Backtrace: camp_report_bug() called at
    >
    [/usr/local/campsite/www-common/html/priv/articles/editor_load_xinha.php:10]
    > editor_load_xinha() called at
    > [/usr/local/campsite/www-common/html/priv/sections/edit.php:27]
    > require_once() called at
    [/usr/local/campsite/www-common/html/admin.php:107]
    >
    >
    >
    >
    >
    >
    >
    >
    > Any ideas?
    >
    >
    > _______________________________________________
    > campsite-users mailing list
    > campsite-users@lists.campware.org
    > http://lists.campware.org/mailman/listinfo/campsite-users
    >



    --
    /holman
    _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users

    _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users

  • Mark!

    please change line 27 from:

    editor_load_xinha('cDescription', $g_user);

    to:

    $languageObj =& new Language($Language);
    if (!is_object($languageObj)) {
    $languageObj =& new Language(1);
    }
    $editorLanguage = camp_session_get('TOL_Language', $languageObj->getCode());
    editor_load_xinha('cDescription', $g_user, $editorLanguage);


    that is it...


    On Nov 14, 2007 10:19 AM, Mark Corsi wrote:
    > Here you go
    >
    >
    > --------------------------------------------------------------------------
    > > require_once($_SERVER['DOCUMENT_ROOT'].
    > "/$ADMIN_DIR/sections/section_common.php");
    > require_once($_SERVER['DOCUMENT_ROOT'].
    > "/$ADMIN_DIR/articles/editor_load_xinha.php");
    > require_once($_SERVER['DOCUMENT_ROOT']. '/classes/Template.php');
    >
    > if (!$g_user->hasPermission('ManageSection')) {
    > camp_html_display_error(getGS("You do not have the right to modify
    > sections."));
    > exit;
    > }
    > $Pub = Input::Get('Pub', 'int', 0);
    > $Issue = Input::Get('Issue', 'int', 0);
    > $Language = Input::Get('Language', 'int', 0);
    > $Section = Input::Get('Section', 'int', 0);
    >
    >
    > $publicationObj =& new Publication($Pub);
    > $issueObj =& new Issue($Pub, $Language, $Issue);
    > $sectionObj =& new Section($Pub, $Issue, $Language, $Section);
    > $templates = Template::GetAllTemplates(array('ORDER BY' => array('Level' =>
    > 'ASC', 'Name' => 'ASC')));
    >
    > $topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj, 'Section'
    > => $sectionObj);
    > camp_html_content_top(getGS("Configure section"), $topArray);
    >
    > $url_args1 = "Pub=$Pub&Issue=$Issue&Language=$Language";
    > $url_args2 = $url_args1."&Section=$Section";
    >
    > editor_load_xinha('cDescription', $g_user);
    >
    > ?>
    >
    >
    > > style="padding-top: 5px;">
    >
    >
    >
    >
    >
    >
    >
    /left_arrow.png" BORDER="0"> > ?> > ?>/go_to.png" BORDER="0">

    >
    >


    >


    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    /add.png" BORDER="0"> > new section"); ?> > ?>/duplicate.png" BORDER="0"> > putGS("Duplicate"); ?> > ?>/delete.png" BORDER="0"> > putGS("Delete"); ?>

    >
    >
    >
    >


    >


    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >

    >
    >

    >
    :
    > getSectionNumber()); ?>
    >
    :
    > > value="getName())); ?>">
    >
    :
    > > value="getUrlName())); ?>">
    >
    :
    >
    >
    > ?>:
    >

    >
    >

    >
    :
    >
    >
    :
    >
    >

    >
    >
    >
    >
    >
    >

    >

    >


    >
    >
    >
    >
    > ------------------------------------------------------------
    >
    >
    > -----Original Message-----
    > From: campsite-users-bounces@netfinity-4.mdlf.org
    > [mailto:campsite-users-bounces@netfinity-4.mdlf.org] On Behalf Of Holman
    > Romero
    > Sent: Wednesday, November 14, 2007 10:03 AM
    > To: Mailing-list for all campsite users.
    > Subject: Re: [campsite-users] Error when trying to set up a section for
    > mypublication
    >
    > hi Mark !
    >
    > can you send me the
    > /usr/local/campsite/www-common/html/priv/sections/edit.php file
    > please?
    >
    >
    >
    > On Nov 14, 2007 9:53 AM, Mark Corsi wrote:
    > >
    > >
    > >
    > >
    > > I am receiving the following error message when I try to set up a section
    > in
    > > the publication:
    > >
    > >
    > >
    > >
    > >
    > > Error ID:
    > >
    > > 2:Campsite:2.7.0-rc4:editor_load_xinha.php:10
    > >
    > >
    > > Software:
    > >
    > > Campsite
    > >
    > >
    > > Error Message:
    > >
    > > Missing argument 3 for editor_load_xinha(), called in
    > > /usr/local/campsite/www-common/html/priv/sections/edit.php on line 27 and
    > > defined
    > >
    > >
    > > Error Number:
    > >
    > > 2
    > >
    > >
    > > Time:
    > >
    > > Wed, 14 Nov 2007 09:53:50 -0500
    > >
    > >
    > > Backtrace: camp_report_bug() called at
    > >
    > [/usr/local/campsite/www-common/html/priv/articles/editor_load_xinha.php:10]
    > > editor_load_xinha() called at
    > > [/usr/local/campsite/www-common/html/priv/sections/edit.php:27]
    > > require_once() called at
    > [/usr/local/campsite/www-common/html/admin.php:107]
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > Any ideas?
    > >
    > >
    > > _______________________________________________
    > > campsite-users mailing list
    > > campsite-users@lists.campware.org
    > > http://lists.campware.org/mailman/listinfo/campsite-users
    > >
    >
    >
    >
    > --
    > /holman
    > _______________________________________________
    > campsite-users mailing list
    > campsite-users@lists.campware.org
    > http://lists.campware.org/mailman/listinfo/campsite-users
    >
    > _______________________________________________
    > campsite-users mailing list
    > campsite-users@lists.campware.org
    > http://lists.campware.org/mailman/listinfo/campsite-users
    >



    --
    /holman
    _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users

  • Thanks for the help Holman. That worked.

    Still having issues getting stuff to show up, but I think that is because my
    initial template install a couple of weeks ago (from template 4) crashed
    part way through and so I don't think I have all the pieces. I posted an
    article and told it to show up on both the home page and the section page
    but it only wants to show up on the home page for some reason. I also posted
    a second article and it will not show up anywhere. I think some of this also
    might be caused my very limited understanding of the templates and what they
    are looking for from the articles in order to display them correctly.

    What is the easiest way to back out and try to do another 'restore' of a
    template site? It would be great to have a fully functional site and then to
    slowly modify it, as my understanding grows, in order to create our
    publications site. Does the restore function pretty much take care of that
    (the backing out from the partially installed template 4)?

    The other thing is I think the restore function on the templates wants root
    to have no mysql password and full permissions on the mysql database. Is
    this true? Can I set the username and password in the database_conf.php file
    before doing that restore and will that correct the issue? That is how I got
    the box back up and running today after its 'crash' the other week caused by
    the attempt to restore template 4 onto the server.

    If I am approaching this from the wrong direction, please let me know. In
    other words, if it is better to simply build the site from scratch to suit
    our needs - while learning the template markup syntax/language - please tell
    me. I am merely trying to get a bit faster start at this. As you can tell by
    the delays between my emails, I have limited, sporadic time available to
    work on this project.

    Thanks -

    Mark


    -----Original Message-----
    From: campsite-users-bounces@netfinity-4.mdlf.org
    [mailto:campsite-users-bounces@netfinity-4.mdlf.org] On Behalf Of Holman
    Romero
    Sent: Wednesday, November 14, 2007 10:29 AM
    To: Mailing-list for all campsite users.
    Subject: Re: [campsite-users] Error when trying to set up a section
    formypublication

    Mark!

    please change line 27 from:

    editor_load_xinha('cDescription', $g_user);

    to:

    $languageObj =& new Language($Language);
    if (!is_object($languageObj)) {
    $languageObj =& new Language(1);
    }
    $editorLanguage = camp_session_get('TOL_Language', $languageObj->getCode());
    editor_load_xinha('cDescription', $g_user, $editorLanguage);


    that is it...


    On Nov 14, 2007 10:19 AM, Mark Corsi wrote:
    > Here you go
    >
    >
    > --------------------------------------------------------------------------
    > > require_once($_SERVER['DOCUMENT_ROOT'].
    > "/$ADMIN_DIR/sections/section_common.php");
    > require_once($_SERVER['DOCUMENT_ROOT'].
    > "/$ADMIN_DIR/articles/editor_load_xinha.php");
    > require_once($_SERVER['DOCUMENT_ROOT']. '/classes/Template.php');
    >
    > if (!$g_user->hasPermission('ManageSection')) {
    > camp_html_display_error(getGS("You do not have the right to modify
    > sections."));
    > exit;
    > }
    > $Pub = Input::Get('Pub', 'int', 0);
    > $Issue = Input::Get('Issue', 'int', 0);
    > $Language = Input::Get('Language', 'int', 0);
    > $Section = Input::Get('Section', 'int', 0);
    >
    >
    > $publicationObj =& new Publication($Pub);
    > $issueObj =& new Issue($Pub, $Language, $Issue);
    > $sectionObj =& new Section($Pub, $Issue, $Language, $Section);
    > $templates = Template::GetAllTemplates(array('ORDER BY' => array('Level'
    =>
    > 'ASC', 'Name' => 'ASC')));
    >
    > $topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj,
    'Section'
    > => $sectionObj);
    > camp_html_content_top(getGS("Configure section"), $topArray);
    >
    > $url_args1 = "Pub=$Pub&Issue=$Issue&Language=$Language";
    > $url_args2 = $url_args1."&Section=$Section";
    >
    > editor_load_xinha('cDescription', $g_user);
    >
    > ?>
    >
    >
    > > style="padding-top: 5px;">
    >
    >
    >
    >
    >
    >
    >
    /left_arrow.png" BORDER="0"> > ?> > ?> SRC=" > echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/go_to.png" BORDER="0">

    >
    >


    >


    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    /add.png" BORDER="0"> putGS("Add
    > new section"); ?>
    > ?>/duplicate.png" BORDER="0"> > putGS("Duplicate"); ?> > ?>/delete.png" BORDER="0"> > putGS("Delete"); ?>

    >
    >
    >
    >


    >


    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >

    >
    >

    >
    :
    > getSectionNumber()); ?>
    >
    :
    > SIZE="32"
    > value="getName())); ?>">
    >
    :
    > > value="getUrlName())); ?>">
    >
    :
    >
    >
    > ?>:
    >

    >
    >

    >
    :
    >
    >
    :
    >
    >

    >
    >
    >
    >
    > VALUE=" > putGS('Save'); ?>">
    >

    >

    >


    >
    >
    >
    >
    > ------------------------------------------------------------
    >
    >
    > -----Original Message-----
    > From: campsite-users-bounces@netfinity-4.mdlf.org
    > [mailto:campsite-users-bounces@netfinity-4.mdlf.org] On Behalf Of Holman
    > Romero
    > Sent: Wednesday, November 14, 2007 10:03 AM
    > To: Mailing-list for all campsite users.
    > Subject: Re: [campsite-users] Error when trying to set up a section for
    > mypublication
    >
    > hi Mark !
    >
    > can you send me the
    > /usr/local/campsite/www-common/html/priv/sections/edit.php file
    > please?
    >
    >
    >
    > On Nov 14, 2007 9:53 AM, Mark Corsi wrote:
    > >
    > >
    > >
    > >
    > > I am receiving the following error message when I try to set up a
    section
    > in
    > > the publication:
    > >
    > >
    > >
    > >
    > >
    > > Error ID:
    > >
    > > 2:Campsite:2.7.0-rc4:editor_load_xinha.php:10
    > >
    > >
    > > Software:
    > >
    > > Campsite
    > >
    > >
    > > Error Message:
    > >
    > > Missing argument 3 for editor_load_xinha(), called in
    > > /usr/local/campsite/www-common/html/priv/sections/edit.php on line 27
    and
    > > defined
    > >
    > >
    > > Error Number:
    > >
    > > 2
    > >
    > >
    > > Time:
    > >
    > > Wed, 14 Nov 2007 09:53:50 -0500
    > >
    > >
    > > Backtrace: camp_report_bug() called at
    > >
    >
    [/usr/local/campsite/www-common/html/priv/articles/editor_load_xinha.php:10]
    > > editor_load_xinha() called at
    > > [/usr/local/campsite/www-common/html/priv/sections/edit.php:27]
    > > require_once() called at
    > [/usr/local/campsite/www-common/html/admin.php:107]
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > Any ideas?
    > >
    > >
    > > _______________________________________________
    > > campsite-users mailing list
    > > campsite-users@lists.campware.org
    > > http://lists.campware.org/mailman/listinfo/campsite-users
    > >
    >
    >
    >
    > --
    > /holman
    > _______________________________________________
    > campsite-users mailing list
    > campsite-users@lists.campware.org
    > http://lists.campware.org/mailman/listinfo/campsite-users
    >
    > _______________________________________________
    > campsite-users mailing list
    > campsite-users@lists.campware.org
    > http://lists.campware.org/mailman/listinfo/campsite-users
    >



    --
    /holman
    _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users

    _______________________________________________
    campsite-users mailing list
    campsite-users@lists.campware.org
    http://lists.campware.org/mailman/listinfo/campsite-users