ZenDB error (3.65 install)

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 26, 2024   (RSS)

By Dave - February 23, 2024

Hi Kenny, 

Can you send in a support request for that one (or send me the server details) and I can take a look.

Usually, that error indicates a MySQL error somewhere, but I'll take a look to find out and improve the error reporting on it.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By Dave - February 23, 2024

Hi Kenny, 

Actually, here's a quick fix you can try.  In /cmsb/lib/ZenDB/DBUtilsTrait.php search for getLastEmulatedQuery

and replace this: 

    public static function getLastEmulatedQuery(): string {
        $dbPrepare = self::$lastInstance->prepare;

with this: 

    public static function getLastEmulatedQuery(): string {
        $dbPrepare = self::$lastInstance->prepare ?? null;

Let me know if that helps.

If there's still an error feel free to send in server details and we can investigate.

Dave Edis - Senior Developer
interactivetools.com

By KennyH - February 26, 2024

Hi Dave -

I applied the change to /cmsb/lib/ZenDB/DBUtilsTrait.php and got a different error message, but one that helped me figure out what the problem was. I had some permalinks in the permalink DB for a section that I had deleted. Once I deleted those, everything appeared as expected.

Thanks,

Kenny