Post by MrGreenMachine » Mon Jun 06, 2011 1:37 am

I recently installed OC 1.5.0 and have some products in the store. Trying to get categories on the home page. added the module categoryproducthome, installed and went to kick it off. When going into edit in the module get
Fatal error: Cannot access private property Document::$title in /sitename/mystore/admin/controller/module/categoryproducthome.php on line 8

The first 8 lines

Code: Select all

<?php
class ControllerModulecategoryproducthome extends Controller {
	private $error = array(); 
	
	public function index() {   
		$this->load->language('module/categoryproducthome');

		$this->document->title = $this->language->get('heading_title');
Nothing looks out of place but php is new to me.. Any help?


Posts

Joined
Mon Jun 06, 2011 1:29 am

Post by wyocrook » Thu Jun 16, 2011 6:57 pm

I am having the same problem with an RSS feed module I just purchased:

http://www.opencart.com/index.php?route ... r_id=36001

Check the comments there--I asked the author about this problem and am hoping for a reply soon.

Post something if you figure it out!

Lee

Newbie

Posts

Joined
Thu Jun 16, 2011 6:54 pm

Post by sameekhan » Mon Jun 20, 2011 2:50 am

Hello
Today i installed the new version of Opencart and when try to install any new module and try to edit i get same fatal error. Really looking for the solution. Please help someone. Thanks in advance.
Regards

Newbie

Posts

Joined
Mon Jun 20, 2011 2:47 am

Post by ikhlief » Tue Jun 21, 2011 2:44 pm

Same problem ???

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by Xsecrets » Tue Jun 21, 2011 9:40 pm

If you are trying to install modules that are made for 1.4.x into 1.5.x they will fail every time. I have not seen a single module that does not need at least some tweaking to work with 1.5.x

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by DJB31st » Wed Jul 13, 2011 7:19 pm

Replace

$this->document->title = $this->language->get('heading_title');

With this
$this->document->setTitle($this->language->get('heading_title'));

Cubecart to Opencart Migrations

KashFlow Accounting Integration with OpenCart


Newbie

Posts

Joined
Wed Jul 13, 2011 7:19 pm

Post by footprint » Mon Jul 18, 2011 5:53 am

DJB31st wrote:Replace

$this->document->title = $this->language->get('heading_title');

With this
$this->document->setTitle($this->language->get('heading_title'));
I used the above code which fixed another messed plugin.

Thanks

Newbie

Posts

Joined
Mon Jul 18, 2011 5:43 am

Post by gloo.guru » Sun Jul 31, 2011 1:54 am

The above fix by changing the paranthesis does allow one to show the module with the categories with radio buttons similar to the png in the zip file .

However one can only select one button . THere is no place at the bottom for the Status : enable or the order : Buttons.
So by inference seems not to be working . Tried on a beta site and main site .

There is the save on the RHS , however if one saves this it still shows blank on the home page

Newbie

Posts

Joined
Sun Jul 31, 2011 1:48 am

Post by SXGuy » Sun Jul 31, 2011 6:58 am

there is a few more places that need to be changed besides setTitle.

For example, any session strings, all HTTP paths, and all breadcrumb codes.

Just compare the latest product files from 1.4.9.6 with the ones in 1.5.0, note the differences in certain strings, and apply the same change to the matching strings in your category home module.

It takes me 10 minutes max to update old modules to 1.5.0 including adding the new layout styling.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by opencart-templates » Wed Jan 11, 2012 4:11 am

Code: Select all

//$this->document->title = $this->language->get('heading_title'); // for 1.4.9
$this->document->setTitle($this->language->get('heading_title')); // for 1.5.0

Advanced Professional Email Template
Customers Pre-Sale. Inc abandoned cart email
Order Follow-Up Email. Inc request review
Email Validation with ZeroBounce


User avatar
Active Member

Posts

Joined
Mon May 16, 2011 7:24 pm
Location - UK

Post by NigelLew » Fri Jul 13, 2012 2:44 am

HI, sorry to resurrect the dead. I need the home page cat mod working in 1.5.3.1 or anyway to get categories with thumbs on the home page in a grid will due like featured products for instance.

dont really care how it gets done really. I just have to show the parent categories in a row.

Error basically the same....

Fatal error: Cannot access private property Document::$title in... admin/controller/module/categoryhome.php on line 8

I don't show anything on line 8 but line 9 is as follows.

$this->data['heading_title'] = $this->language->get('heading_title');

thanks for the help,
Nigel




EDIT

Scratch that, use this...... http://shopencart.com/category-wall-opencart-1.5x

Newbie

Posts

Joined
Thu Feb 16, 2012 1:50 am

Post by Saudi Bee » Sat Dec 01, 2012 1:29 pm

I used the above code to fix a problem with soical bookmark module and worked like a magic !

New member

Posts

Joined
Sat May 19, 2012 5:09 pm

Post by ALEXHKHK » Mon Sep 16, 2013 10:19 pm

very nice post

Newbie

Posts

Joined
Mon Sep 16, 2013 7:15 pm
Who is online

Users browsing this forum: No registered users and 5 guests