Thanks for the reply.
On Thursday, 18 October 2012 10:53:54 UTC+1, GarethMcc wrote:
> You need to find a file called CMSPagePeer.php. In it will be a function
> called getPageByHTML. Its in there that the problem will reside. Probably a
> file path that needs changing or something.
> On 18 Oct 2012 11:39, "Online Selling" <in...@online-selling.co.uk<javascript:>>
> wrote:
>> Hi,*
>> *I've been given a Symfony site to put from one web server to another.
>> This itself posed a number of challenges which I have fixed, however I'm
>> stuck on one now.
>> I can get the page to half-load, but it stops and I'm presented with this
>> error:*
>> Fatal error*: Call to a member function getId() on a non-object in *
>> /var/www/vhosts/
>> domain.co.uk/apps/frontend/modules/pages/actions/components.class.php*on line
>> *20
>> *I've checked the PHP file in question, here are the contents of that
>> file:
>>> <?php
>>> /**
>>> * shop actions.
>>> *
>>> * @package shop
>>> * @subpackage shop
>>> * @author Your name here
>>> * @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z
>>> fabien $
>>> */
>>> class pagesComponents extends sfComponents
>>> {
>>> public function executeNews()
>>> {
>>> $this->news = CMSPagePeer::getPageByHTML('news');
>>> $this->newsResults = CMSPageDataPeer::getLivePageContents(
>>> $this->news->getId(),1 ); *<----- this is line 20*
>>> $this->fields = $this->news->getElements();
>>> }
>>> }
>> Despite the error I know what's *supposed *to be here because I saw the
>> site beforehand, it's a scrolling news ticker. Unfortunately I'm totally
>> new to symfony and googling this error has produced no useful help.
>> Any help you can provide would be greatly appreciated!
>> Darren
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>> You received this message because you are subscribed to the Google
>> Groups "symfony1" group.
>> To post to this group, send email to symf...@googlegroups.com<javascript:>
>> To unsubscribe from this group, send email to
>> symfony1+u...@googlegroups.com <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony1?hl=en