Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$content = new JCckContentArticle - in AFTERSTORE field #528

Closed
Bucklash opened this issue Jul 17, 2018 · 4 comments
Closed

$content = new JCckContentArticle - in AFTERSTORE field #528

Bucklash opened this issue Jul 17, 2018 · 4 comments

Comments

@Bucklash
Copy link
Contributor

RE: https://www.seblod.com/community/forums/general-discussions/new-jcckcontentarticle-vs-new-jcckcontentjoomla-article

Hi folks.
I updated my afterstore fields to use the 3.16 style class names but ended up with error messages:

$content = new JCckContentArticle; Error Message: Cannot instantiate abstract class JCckContentArticle
...and...
$content = JCckContentArticle::getInstance( 1097 ); Error Message: Call to undefined method JCckContentArticle::getInstance()

Old class name ($content = new JCckContentJoomla_Article;) works as intended

Joomla 3.8.10
Seblod 3.16.2

Regards

Jon

@sebastienheraud
Copy link
Member

Hi Jon,
It seems that the update process was not successful on your site.
Please go to /libraries/cms/cck/content and remove:

  • article.php
  • category.php

Regards,
Saba.

@Bucklash
Copy link
Contributor Author

Perfect...
Thanks very much :)

@klas
Copy link
Collaborator

klas commented Jul 19, 2018

I just checked on my test site and I also have this files there.

@Bucklash
Copy link
Contributor Author

Bucklash commented Jul 22, 2018

Hi

Just thought I would add that $content = JCckContentUser::getInstance($v); is no joy for me.
Added a question on forum:
https://www.seblod.com/community/forums/general-discussions/jcckcontentuser-getinstance-id-no-store

Example:

$content = JCckContentUser::getInstance(441); <- a different user to current one
$content->setProperty( 'gender', 'C' )->store(); <- an example of trying to save something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants