Package upgrade error with getCollectionParentIDFromChildID()

Permalink
Hello all,

I am working with package. I have made some changes in package and update version. From concrete5 dashboard i am upgrading the package, but while upgrading i am getting following error :

Non-staticmethod Concrete \ Core \ Page \ Page :: getCollectionParentIDFromChildID () Should not be called statically, Assuming $ this from incompatible context


I know that error comes from "autonav" block.

I want to know in which direction this error comes. Is there server side setting with "PHP.INI"

Any suggestions are welcome.
Thanks

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi avdevs,

Why do you think the error comes from the Auto-Nav block?

In your package, are you using the getCollectionParentIDFromChildID() method? If so, are you trying to use it statically - Page::getCollectionParentIDFromChildID()?

The method is not static.
http://documentation.concrete5.org/api/source-class-Concrete.Core.P...
avdevs replied on at Permalink Reply
Thanks for your response MrKDilkington.

In my package i have not use the getCollectionParentIDFromChildID() method.

I have check your link it says "Page Not Found"
MrKDilkington replied on at Permalink Reply
MrKDilkington
@avdevs

The API page looks to be down at the moment.

Are you working on a custom package or package you downloaded? If you downloaded the package, which package is it?

What version of concrete5 are you using?
avdevs replied on at Permalink Reply
I am working on custom package which is not able to download.
I have concrete5 Version
Core Version - 5.7.5.2

In my package controller, i have used like :
https://www.concrete5.org/index.php?cID=755781...
MrKDilkington replied on at Permalink Reply
MrKDilkington
@avdevs

Why do you think the error comes from the Auto-Nav block?

Without more information, or seeing the add-on code, I am not sure what is causing the problem.
avdevs replied on at Permalink Reply
because the autonav is only place where getCollectionParentIDFromChildID() function call