7
Quote:
At this point I do not know if I should create a special function with native php functions or if there is no other solution.
I don't have the answer for it without looking at your code, but one thing is for sure:
We can NOT blame everything on the XOOPS Core!! As
I've mentioned before, debugging is a systematic process, where you have set your assumptions, and then test them step by step. If an object is not present as it should, you have to go step by step, set up breaks in the code, and then check if the object is being instantiated where it should be.
And let's be realistic: in 95-98% of cases it is our mistake, not a bug in the Core
This, of course, is not to say that there are no bugs in the Core! It might happen for example, that a code that worked on PHP 4, is becoming a bug under PHP 5.5.x.
But we need to do our homework first, i.e. test the module code we're writing, and once we're absolutely sure that our logic is correct, as proved by tests, then look at the Core and then test it at the Core level before we jump to any conclusions and blame it on the Core!