CMS MADE SIMPLE FORGE

Content Aliases

 

[#6088] Error calling an undefined method

avatar
Created By: Edward Januszewski (NL_Ed)
Date Submitted: Wed Feb 09 09:52:52 -0500 2011

Assigned To: Fernando Morgado (JoMorg)
Version: 0.6.11
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Error calling an undefined method
Detailed Description:
Hi,
First of all here is the error:

Fatal error: Call to undefined method ContentAlias::CreateNewContent() in
/var/www/vhosts/xxxxxx/xxxxxx/xxxxxx/httpdocs/lib/classes/class.contentoperations.inc.php
on line 166

To Produce the error I made 6 pages, there are 2 sets
Set One:
Page 1 -    Standard Content
Page 1 -> Page 2 -    Internal Page Link to Page 3
Page 1 -> Page 2 -> Page 3 -    Standard Content

Set Two:
Page 1 - Standard Content
Page 1 -> Page 2 -    Internal Page Link to Page 3
Page 1 -> Page 2 -> Page 3 -    Content Alias, aliasing Set Ones Page 3.

The error appears where the content should appear and anything after that on the
page doesn't load.
This was produced on CMSMS 1.9.3 Running Content Alias Module 0.6.11

Thanks in advance for any help.

Ed


History

Comments
avatar
Date: 2012-04-11 06:55
Posted By: Henning Schaefer (hschaefer)

This is an easy fix: ContentOperations seems to be no longer a collection of
static methods, but a singleton. Replace the Show method in
contenttype.contentalias.php by the following code:

function Show($param='')
	{
        $this->makeSurePropsAreLoaded();

		// Get the content that's being pointed at, and return it
		$co = ContentOperations::get_instance();
$contentobj = $co->LoadContentFromId($this->GetPropertyValue('alias_target'),
true);
		return $contentobj->Show($param);
	}
      
avatar
Date: 2012-04-12 10:37
Posted By: Josko (surogat)

I just did that and no change;

	function Show($param='')
	{
        $this->makeSurePropsAreLoaded();

		// Get the content that's being pointed at, and return it
$contentobj =
ContentManager::LoadContentFromId($this->GetPropertyValue('alias_target'),
true);
		return $contentobj->Show($param);
	}

to

function Show($param='')
	{
        $this->makeSurePropsAreLoaded();

		// Get the content that's being pointed at, and return it
		$co = ContentOperations::get_instance();
$contentobj = $co->LoadContentFromId($this->GetPropertyValue('alias_target'),
true);
		return $contentobj->Show($param);
	}

result;
Fatal error: Call to undefined method ContentAlias::CreateNewContent() in
/XXX/lib/classes/class.contentoperations.inc.php on line 176

CMSMS 1.10.3
ContentAliases 0.6.11


      
avatar
Date: 2012-04-12 16:58
Posted By: Josko (surogat)

It worked fine before upgrade of  CGExtensions to [b]1.28.1[/b]
class.contentoperations.inc.php line 176 is this one:
$contentobj = $this->CreateNewContent($classtype);

tnx

Cms Version: [b]1.10.3[/b]

Installed Modules:

    CMSMailer: [b]2.0.2[/b]
    CMSPrinting: [b]1.0[/b]
    FileManager: [b]1.2.0[/b]
    MenuManager: [b]1.7.7[/b]
    MicroTiny: [b]1.1.1[/b]
    ModuleManager: [b]1.5.3[/b]
    News: [b]2.12.3[/b]
    Search: [b]1.7[/b]
    ThemeManager: [b]1.1.4[/b]
    Cataloger: [b]0.10[/b]
    CGExtensions: [b]1.28.1[/b]
    CGSimpleSmarty: [b]1.5[/b]
    CGGoogleMaps: [b]2.2.7[/b]
    JQueryTools: [b]1.0.10[/b]
    CompanyDirectory: [b]1.13.1[/b]
    ContentAliases: [b]0.6.11[/b]
    HostedVideoAlbums: [b]2.3.1[/b]
    avplayer: [b]1.3.2[/b]
    Showtime: [b]3.1[/b]
    jQuery: [b]1.2.0[/b]

      
avatar
Date: 2012-11-14 19:20
Posted By: Fernando Morgado (JoMorg)

Fixed in version 0.7 already released.
      
Updates

Updated: 2012-12-30 14:23
state: Open => Closed

Updated: 2012-11-14 19:20
resolution_id: => 7
cmsms_version_id: => -1
assigned_to_id: 100 => 12532