RE: [campsite-support] Can't create new publication & can't delete language
  • Hi,

    the bug appeared on create publication form is fixed in the svn trunk
    version.

    On an existing 3.1 installtion, please replace
    campsite/implementation/site/plugins/poll/admin-files/include/pub/pub_form.p
    hp with this version.

    Best,
    Sebastian



    > -----Original Message-----
    > From: Holman Romero [mailto:holman.romero@gmail.com]
    > Sent: Wednesday, October 01, 2008 7:17 PM
    > To: campsite-support@campware.org
    > Subject: Re: [campsite-support] Can't create new publication & can't
    > delete language
    >
    >
    > Hi Radenko,
    >
    > We just fixed one of the bugs (the one regarding caching), thanks for
    > reporting them.
    > I am gonna take a look to one that does not allow you to create
    > publications and will let you know anything as soon as possible.
    >
    > Best,
    >
    >
    > On Thu, Sep 25, 2008 at 12:22 PM, Radenko Ritan wrote:
    > > I installed campsite v 3.1.1 on shared hosting with c-panel.
    > > Everitnig was ok during instalation but I coudn't access to
    > admin (got 404
    > > error) unless I add this line:
    > > Options -Indexes FollowSymlinks MultiViews
    > > in .htaccess file.
    > >
    > > Afther that I could log in admin panel and change the publication alias.
    > >
    > > But, when I tryed to delete language I got this error, it looks
    > like cache
    > > problem and I don't have installed APC:
    > >
    > > http://www.stavmagazin.com/admin/languages/do_del.php?Language=19
    > >
    > > Fatal error
    > >
    > > : Call to a member function delete() on a non-object in
    > > /home/stavmaga/public_html/classes/DatabaseObject.php on line 445
    > >
    > > This is code from DatabaseObject.php
    > >
    > > // removes object from cache
    > > $cacheKey = $this->getCacheKey();
    > > $cacheObj = CampCache::singleton();
    > > $cacheObj->delete($cacheKey);
    > >
    > > Then I tried to add new publication and got this error,
    > attached picture:
    > >
    > >
    http://www.stavmagazin.com/admin/pub/add.php?Back=%2Fadmin%2Fpub%2Findex.php
    >
    > Fatal error
    >
    > : Call to a member function getLanguageId() on a non-object in
    >
    /home/stavmaga/public_html/plugins/poll/admin-files/include/pub/pub_form.php
    > on line 16
    >
    > pub_form.php
    >
    > d=$f_publication_id&f_language_id={$publicationObj->getLanguageId()}");
    > ?>', 'assign_poll', 'scrollbars=yes, resizable=yes, menubar=no,
    toolbar=no,
    > width=800, height=600, top=200, left=100');">

    >
    >
    > If you need any information about server configuration here is link on
    > phpinfo.
    > http://www.stavmagazin.com/pinfo.php
    >
    > Thanks,
    > Radenko
    >
    >



    --
    /holman