Error when calling sitecake.php

Having got the site updated to PHP 5.6, I now find that when I call sitecake.php I get this error:

Fatal Error: Call to undefined function mb_eregi() in file [SITE]/sitecake/2.3.6/vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php on line (#305)

Any suggestions?

Thanks but I do not know what it is you are referring to. Can you elucidate further please?

Hi, link is below

http://php.net/manual/en/mbstring.installation.php

Thank you. I have consulted with the hosting providers and they have confirmed that GD and Mbstring are embedded. I have checked this:

gd

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled
Directive Local Value Master Value
gd.jpeg_ignore_warning 0 0

mbstring

Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled
libmbfl version 1.3.2
mbstring extension makes use of “streamable kanji code filter and converter”, which is distributed under the GNU Lesser General Public License version 2.1.
Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input no value no value
mbstring.http_output no value no value
mbstring.http_output_conv_mimetypes ^(text/|application/xhtml+xml) ^(text/|application/xhtml+xml)
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

And I am getting the same error whenever I call sitecake.php.

Hi, it seems that mbregex is disabled in php config. Contact your hosting provider to see how you can enable mbregex.

We enabled MBREGEX and then found it was causing problems with EA3 so we updated to EA4. Now I am getting a HTTP error 500 when I try to use sitecake.php.

Hi, you are missing GD extension for php. You can check it on yourdomain.tld/sitecake/2.3.6/config/check.php

The web hosts say that GD extensions are enabled for versions:

PHP 5.4
PHP 5.5
PHP 5.6

The sitecake.php is still generating an HTTP 500 error message

Hi, I checked phpinfo file and to me it looks like that gd library isn’t loaded. Also checked your installation and can confirm that error 500 is because gd library is not loaded. Check this url http://www.webassist.com/tutorials/Enabling-the-GD-library-setting. There is image of how gd section on phpinfo page should look like if it’s loaded. You don’t have that section on your phpinfo page at all.

Thank you very much.

Just after I posted to you I ran a PHP code to specifically check for GD and it resulted in a negative - clearly stating that it is not installed.

I have contacted the web hosting service and informed them to check their findings again.

The hosting provider has found their problem and corrected it. However, when I call sitecake.php the web page menu disappears. The menu is an included shtml file and works OK but sitecake does not appear to like it.

Try to add index.shtml to site.default_pages var in config file

Thanks Predragleka but I did that a while back when I first uploaded the file.

Can you try to put site in root? Or try to use <!--#include virtual="/test2/topbar.shtml" --> when in subdir

Thanks Predragleka

I tried it in the root and got this error message

Fatal Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 524288 bytes) in file [SITE]/sitecake/2.3.6/vendor/league/flysystem/src/Adapter/Local.php on line (#276

Your memory_limit is 32M. That’s pretty low. Increase it to at least 128M

Why do I not get thise error when I run sitecake.php inside a sub folder?

Using

When in subdir has no effect.

@Sertius Sorry for late response, I wasn’t in office for few days. Did you figured it out.