Laravel 5.1 shows error on PHPDesktop on the first page itself.

571 views
Skip to first unread message

vvpa...@gmail.com

unread,
Oct 15, 2015, 5:38:06 AM10/15/15
to PHP Desktop
I am trying to use Laravel 5.1 with phpdesktop. I configured everything according to instructions but I get a fatal error for the first page itself. The instructions page says it has tested on laravel 4.2 but I am using Laravel 5.1.. the www/public directory in settings.json is changed to www/www directory as the directoy structure of Laravel 5.1 has changed. I have copied all the Laravel files in www directory and changed the settings in settings.json file aswell.
I am getting following Error:

Fatal error: Call to undefined function Illuminate\Foundation\Bootstrap\mb_internal_encoding() in H:\app\laravel\www\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\LoadConfiguration.php on line 43

You can check the screenshot over here: http://i.imgur.com/aQ3u5vU.png?1

Czarek Tomczak

unread,
Oct 15, 2015, 8:04:44 AM10/15/15
to phpde...@googlegroups.com
Try setting error reporting to something like E_ALL or -1. In php.ini or in a script. Maybe there are more errors.


--
You received this message because you are subscribed to the Google Groups "PHP Desktop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpdesktop+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phpdesktop.
To view this discussion on the web visit https://groups.google.com/d/msgid/phpdesktop/82f14aaa-b7a2-423a-ac5e-9bfbcde11a66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vivek Padhye

unread,
Oct 17, 2015, 1:46:13 PM10/17/15
to PHP Desktop
Hi,
Error Reporting is already E_ALL. I also tried -1 but nothing seems to work. The laravel application is working normally outside in xampp server but does not work in phpdesktop.

Czarek Tomczak

unread,
Oct 17, 2015, 3:16:51 PM10/17/15
to phpde...@googlegroups.com
Does xampp ship the same php version as phpdesktop? Have you tried updating php in phpdesktop?

On Sat, Oct 17, 2015 at 7:46 PM, Vivek Padhye <vvpa...@gmail.com> wrote:
Hi,
Error Reporting is already E_ALL. I also tried -1 but nothing seems to work. The laravel application is working normally outside in xampp server but does not work in phpdesktop.

--
You received this message because you are subscribed to the Google Groups "PHP Desktop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpdesktop+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phpdesktop.
Message has been deleted

Vivek Padhye

unread,
Oct 18, 2015, 10:14:50 AM10/18/15
to PHP Desktop
Hi, PHPDesktop version is 5.6.1 while that of xampp is 5.6.12. As far as Laravel is concerned, minimum requirement is 5.5.9 which is met by PHP desktop. Just to make sure I am doing everything right, please see if I am doing it correct. I copied all Laravel files into www directory of PHP desktop. Now there is www of laravel inside www of phpdesktop. So I changed settings in PHPdesktop's settings.json to be  "www_directory": "www/www", and "404_handler": "/index.php". Is this all correct?

Czarek Tomczak

unread,
Oct 18, 2015, 4:14:41 PM10/18/15
to phpde...@googlegroups.com
Configuration looks okay. Try updating php binaries to 5.6.12, see https://code.google.com/p/phpdesktop/wiki/KnowledgeBase#PHP_interpreter_&_extensions

On Sun, Oct 18, 2015 at 4:14 PM, Vivek Padhye <vvpa...@gmail.com> wrote:
Hi, PHPDesktop version is 5.6.1 while that of xampp is 5.6.12. As far as Laravel is concerned, minimum requirement is 5.5.9 which is met by PHP desktop. Just to make sure I am doing everything right, please see if I am doing it correct. I copied all Laravel files into www directory of PHP desktop. Now there is www of laravel inside www of phpdesktop. So I changed settings in PHPdesktop's settings.json to be  "www_directory": "www/www", and "404_handler": "/index.php". Is this all correct?

--
You received this message because you are subscribed to the Google Groups "PHP Desktop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpdesktop+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phpdesktop.

Vivek Padhye

unread,
Oct 18, 2015, 4:26:30 PM10/18/15
to PHP Desktop
Hi,
I have updated PHP binaries to 5.6.12, yet it is giving same error.
Message has been deleted

Re. Pe.

unread,
Oct 19, 2015, 4:27:48 PM10/19/15
to PHP Desktop
Try to do these things:
1) create start.php file in laravel/public:

<?php
header('HTTP/1.1 307 Temporary Redirect');
header('Location: ' . '/index.php' . $_SERVER["REQUEST_URI"]);

2) edit settings.json:

    ...,
    "web_server": {
        ...,
        "index_files": ["start.php", "index.php", "index.html"],
        ...,
        "404_handler": "/start.php"
    },
    ...

I hope it will help you.
Reply all
Reply to author
Forward
0 new messages