jessy Posted August 29, 2019 Share Posted August 29, 2019 (edited) I have created a blog, that it works on localhost, but not when I put it on web. I think that I should change PHP version and preferences. On PHP 5.5 (selected: mysqlnd, nd_mysqli, nd_pdo_mysql) I get: "PHP Catchable fatal error: Argument 1 passed to esc() must be an instance of String, string given, called in /public_html/blog/includes/registration_login.php on line 67 and defined in /public_html/blog/includes/registration_login.php on line 102" On PHP 7.3 I can login, but I can not write and manage posts and users, because after clicking submit the url is written twice. Any ideas? Edited August 29, 2019 by jessy Quote Link to comment https://forums.phpfreaks.com/topic/309152-it-works-on-localhost-but-not-when-i-put-it-on-web/ Share on other sites More sharing options...
jessy Posted August 29, 2019 Author Share Posted August 29, 2019 Ok. Never mind. I made a mistake with BASE_URL. Quote Link to comment https://forums.phpfreaks.com/topic/309152-it-works-on-localhost-but-not-when-i-put-it-on-web/#findComment-1569277 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.