Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahmeda's avatar

Call to undefined function Illuminate\Encryption\base64_decode()

I deployed my Laravel app on a shared hosting server first it say "forbidden" I solve it by putting .htaccess to redirect to a public folder, but once i visit my domain I got this error:

Call to undefined function Illuminate\Encryption\base64_decode()

full error in an image: https://ibb.co/1mrWcLz

0 likes
5 replies
ahmeda's avatar

@siangboon The problem is that the server is a shared hosting I can not run commands on it :(

1 like
siangboon's avatar

@ahmeda contact your hosting support and request for enable the openssl first if it is not.

1 like
Snapey's avatar

perhaps if you hosted the site correctly with the public folder as the document root and not public_html?

This is a laravel 9 project? I assume you just FTP copied your local project over?

1 like
vincent15000's avatar

The project should not be copied in the public_html folder.

First of all it's not secure because you give access to sensitive datas to everyone.

Second you will encounter some problems like this one for which you have written the post.

Please or to participate in this conversation.