Forums / Developer / Trouble with custom script

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Trouble with custom script

Author Message

Erik Weinmaster

Monday 28 June 2010 12:16:37 pm

I have a custom script that begins the same way that ezcache.php does. First is the require 'autoload.php' command followed by the eZCLI::instance(), eZScript::instance(), and others.

Most of the functions work just fine, including the eZDB::instace which comes later. Unfortunately, when I try access some kernel code, namely eZContentFunctions.php. I keep getting an error saying that this is unavailable.

I have also tried placing this file in a require statement along with autoload.php. Nothing works. How do include all the system files into a script in order to use kernel code?

thanks,

-erik