kensmithzzz

Member Since 2 Years Ago

Experience Points
1,130
Total
Experience

3,870 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 1
1,130 XP
Apr
08
1 week ago
Activity icon

Replied to Fresh Laravel Install Throws Exception

Yes, as long as no one needs to actually use a different query parameter separator than the traditional ampersand.

For me, this is resolved.

Activity icon

Awarded Best Reply on Fresh Laravel Install Throws Exception

Solved...

In my php.ini, I had this line: arg_separator.input = ";&"

With that setting, query arguments in PHP could be separated by either a semicolon or an ampersand.

Now, one could argue that this still shouldn't throw an exception, but once I removed the semicolon from the list of PHP query separators, all is well. No more exceptions.

Activity icon

Replied to Fresh Laravel Install Throws Exception

Solved...

In my php.ini, I had this line: arg_separator.input = ";&"

With that setting, query arguments in PHP could be separated by either a semicolon or an ampersand.

Now, one could argue that this still shouldn't throw an exception, but once I removed the semicolon from the list of PHP query separators, all is well. No more exceptions.

Activity icon

Replied to Fresh Laravel Install Throws Exception

Since spinning up a fresh EC2 Ubuntu server and installing PHP via apt install doesn't have the issue, I have a new theory...

I have always built PHP from source, so that I can include only the extensions that I actually need.

Perhaps this problem only manifests when some particular extension is unavailable, and there is an alternate code path as a result.

Since a PHP install via apt doesn't show the problem, this is my best guess now.

I'll experiment with that as I have time over the next few days.

Activity icon

Replied to Fresh Laravel Install Throws Exception

OK, I spawned a fresh AWS EC2 instance, installed PHP and did these steps. And, I don't get an exception.

So it's something local to my development environment. I'll keep looking around.

Activity icon

Replied to Fresh Laravel Install Throws Exception

Yep, latest versions.. laravel/laravel 8.5.15, laravel/framework 8.36.2

When testing on Windows, you are including the parameter on the end of the URL, right? "?q=(;)"

http://127.0.0.1:8000/?q=(;)

Can someone on Linux give it a spin? I just can't think of anything specific to my setup that would break anything.

It's a straightforward laravel install that pulls all the latest versions.

Not surprisingly, I get the same result when I install with composer create-project laravel/laravel test

Activity icon

Replied to Fresh Laravel Install Throws Exception

Wow, I’m surprised. I’ll check my version numbers tomorrow, but I am pretty sure they’ll closely match yours, except on Linux. Interesting and surprising.

Apr
07
1 week ago
Activity icon

Replied to Fresh Laravel Install Throws Exception

This happened on one of my live sites, when a typical drive-by exploit scan caused an exception. I researched enough to get it down to the steps above, which anyone should be able to replicate.

It’s not an issue that I particularly need to fix, but where there is an exception there may be a lurking security vulnerability.

Since I’m not familiar enough with the Laravel and Symfony internals to easily find the cause and submit a fix, I posted it here in the hopes that someone else would be interested.

As a start, perhaps try visiting one of your own live sites with a query parameter of (;)

Apr
06
1 week ago
Activity icon

Replied to Fresh Laravel Install Throws Exception

hex2bin(): Hexadecimal input string must have an even length

in test/vendor/symfony/http-foundation/HeaderUtils.php (line 247)

Activity icon

Started a new Conversation Fresh Laravel Install Throws Exception

I sent an email about this to Laravel, but never got a response. A fresh Laravel install shouldn't throw an exception due to a malformed URL...

To replicate it:

laravel new test
cd test
php artisan serve

Then visit http://127.0.0.1:8000?q=(;)

Oct
20
5 months ago
Activity icon

Started a new Conversation Is My Socialite Facebook Avatar Code About To Break?

I use Socialite, with Facebook as one of the oauth providers. When a user logs in via Facebook, I save their avatar URL. I then use that URL whenever I need to display their avatar. Those URLs look like this: https://graph.facebook.com/v3.3/USER-ID-HERE/picture?type=normal

Recently, I'm getting developer emails from Facebook warning me that "Changes to token requirements will break your applications function".

Specifically: "Changes to tokenless access for User Picture and FB/IG OEmbed endpoints: By October 24, 2020, developers must leverage a user, app, or client token when querying Graph API for user profile pictures via UID, FB OEmbeds and IG OEmbeds. Developers should provide a user or app token when querying for profile pictures via a UID or ASID, though client tokens are supported as well. Please visit our changelog for User Picture, Facebook OEmbed and Instagram OEmbed for details on how to start calling these Graph API endpoints today."

I'm not sure how to address this. Any ideas?