Laravel 5 splash screen returns row of question marks - php

I've been looking for an answer to this issue for a day or so now since I'm sure the solution is trivial but I can't seem to find it.
On a fresh install of Laravel 5 through composer create-project I get a splash screen that looks like this:
It's very faint but there is a line of question marks running along the top of the page.
I'm running Windows 8.1 with WAMP 2.5.
Some searching threw up some answers regarding the addition of detect_unicode = off in my php.ini file but this hasn't solved it (and I've ensured I'm editing the correct php.ini file what with there being several using WAMP).
Composer was installed using the Windows .exe file and oddly enough, I have other Laravel 5 projects running on the same machine without any issue. As a test I push the site exactly as it is to the live server (a unix machine) where it displays correctly.
Laravel itself doesn't report any errors.
Other possible answers seem to point to a BOM in the files. I'm using PHP Storm for most of my editing but I'm unsure of how to remove any BOMs in the files.
Thanks.

It could be because your precompiled files may have been corrupted somehow along the way.
Try deleting the file compiled.php inside the /vendor/ folder and run composer update from the command line right after.

Related

Fresh Laravel install deletes server.php on artisan serve

I'm a bit fresh to Laravel. I installed it via composer in the xampp/htdocs file. I installed the latest version 5.6.
The install works with no errors, and the file structure is as it should be.
When I run the php artisan serve command from inside the folder, it deletes the server.php file and therefore outputs the error:
This site can’t be reached.
localhost refused to connect.
So I thought why not just add a new file inside and it will work... Well, trying to add new file shows that I do not have permissions to add files to this folder.
I tried a new install a few times, but the situation is always the same.
Has anybody else encountered this problem?
So I realised it was some kind of server problem... well, removed the antivirus, chanhed my firewall settings and everithing works as it should.
My advice to avoid this in the future is to start creating Laravel applications in a folder inside of your My Documents folder in Windows or using /home/{your-username}/projects directory in Unix environments.
What likely happened is xampp has certain permissions that don't play nice with what you need in Laravel.

Strange behaviour when trying to release new code composer autoloader

When recently deploying a PHP application we've had errors such as "Call to undefined method......" when after checking on ftp that the method is clearly in the file.
The strange part about it, is that if we edit the composer autoload files: vendor/autoload.php and vendor/composer/autoload_static.php files, literally putting a space or newline somewhere in the file. Then all of a sudden the methods resolve properly.
Anyone have any idea what's going on?
Using Apache2.4 on ubuntu 16 with php-fpm to php 5.6.31.
Also if it helps, we have the same codebase on the server on 4 different vhosts.
Have tried:
Running composer dump-autoload
Running composer update
Running opcache_reset() from a web page
The even funnier thing is, when we remove the newlines from the two autoload files, it breaks again. It's as if the autoload files have been cached somewhere and are identified by their hash or something.

Linux Mint Localhost browser Not Accepting Changes

As specified by title, my linux mint does not execute newer version of page in localhost with php 7.0 and mariadb apache2, (using laravel).
i bet this problem is weirdest problem ever i encounter, because no matter what am writing in page its keep showing previous version of it.
Okay let me explain, like i created a file named anything.blade.php, and put contents like simple html with blade template eg:
#extends('layouts.app')
#section('content')
Dashboard
#endsection
And now assume i need to change anchor url for some reason, it wont take effect any how ! :( no matter what am doing with file, after deleting entire markup from file, it still showing previous version of file, with old link.
And no problem with windows OS, besides its happening some times in linux via random files :( and localhost:90 is always running as laravel root once started by "php -S localhost:90 -t public"
Again am specifying it as a very complex and fuzzy problem, googled several time with little or no luck :'( StackOverFlow is a Final Destination.

PHP Xdebug Netbeans Breakpoints

After working fine, with no config changes for months xdebug/netbeans is now useless.
I can create breakpoints but whenever it has 'stepped in' to a further scope its impossible to step thru and simply jumps out of the inner scope to the caller.
There are no exceptions generated.
Using tail -f xdebug.log shows breakbpoints being correctly created / removed, Netbeans failed to remove from Ubuntu Software Centre, however I reinstalled over the top of existing. This does not seem clean as Netbeans remembered settings.
Latest steps:
Ran instructions at https://xdebug.org/wizard.php and rebooted webserver
Of note here it recommended install of xdebug-2.4.1 instead of previously 2.4.0 however this made no difference to current state of NetB / Xdebug combo. I checked php-fpm ini and this correct phpized version still ?
Ran uninstall.sh at /usr/local/netbeans8.*
Downloaded re-install at http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html (I also need Java JDK so this is ideal)
Made it executable and ran installer (as sudo)
chmod +x jdk-8u101-nb-8_1-linux-x64.sh;
./jdk-8u101-nb-8_1-linux-x64.sh;
And nothing changes - this is very frustrating that software designers still cannot be a***d to create proper uninstallers. Still same settings prior to re-install.
Further
Closed NetBeans again
cdl /home
then check in each user dir
rm -r .netbeans
rm -r NetBeansProjects
There was also a directory called nbproject near the site root directory and in the sitefiles repo which is gitted - these was removed.
Update
Now set up the project including the crap Netbeans debug 'stop at first line' and allowing watches (whats the point of these defaults in a generally used framework norm such as laravel and what is debugging without being able to look at variable values).
Its now begun allowing stepping thru code but after closing debug session will now not allow access to run config. Had to close all projects and reopen.
This proves that its a Netbeans issue.
Seems the problem went - maybe on IDE update ?
Created (with a struggle as continually no drop down options) I managed to add a few more debug urls. Its still not possible to do this directly as before so presume Netbeans has done some sort of 'breakit update'.
Testing the URLs in debug mode shows them all to step thru PHP properly now.
To change the URL is now an un-intuitive chore of selecting the project first in the projects tab and hoping to catch it in the drop down.
Therefore since re-install of xdebug showed it the project still broken, then complete manual re-install of the botched uninstall by the actual Netbeans app now shows it working it can only be confirmed that Netbeans is at fault. Shame - I have used Netbeans for years, but for it to cost me 2 days is a liability. Anyone know if Eclipse has improved speed wise ?

Which PHP file to add to my Path using WampServer (Win7/64)

I've been reading up on TDD using PHP and i'm ready to install PHPUnit, however...
I'm on Win7/64 running WampServer
I'm reading all these PEAR/PHPUnit install nightmare stories which are making me very leery.
So I'm considering using Composer to install PHPUNit (to skip the whole PEAR thing, for now).
Either way, it seems that it's best to have PHP in the PATH, which is not the case for default wampserver setup I suppose (since it's NOT already in my PATH)
I'm a bit confused about exactly which php file I should be adding to the PATH, as my directory (C:\wamp\bin\php\php5.3.10) has the following files:
php.exe
php-win.exe
I was planning on using number 1.
Finally, are there any other caveats that I should be aware of.
I'm using NetBeans (and SublimeText2 for front end stuff) and WampServer 2.2
Thanks!
sleeper
I Solved it. I just add the directory (C:\wamp\bin\php\php5.3.10), not an individual file. See my comment.

Categories