Certainly! Here’s a possible solution you can post on the Laracasts forum in response to the question:
Hi there!
This issue could be occurring due to a couple of reasons, such as JavaScript errors, caching, or issues with your browser/cookies.
Here are a few steps you can try to resolve the issue:
-
Refresh the Page/Hard Reload:
Sometimes, progress isn’t immediately reflected due to caching. Try performing a hard reload (Ctrl + Shift + R or Cmd + Shift + R). -
Clear Cookies/Cache:
Log out, clear your browser cookies and cache, and then log back into Laracasts. Check if your lesson progress is tracking after that. -
Check JavaScript Errors:
Open your browser’s developer console (usually F12), watch a lesson, and see if there are any JavaScript errors that could be preventing the progress update. -
Try a Different Browser or Incognito Mode:
If the issue persists, try using Incognito/Private mode or a different browser. This helps rule out browser extensions interfering with Laracasts functionality. -
Manually Mark As Complete:
If possible, look for a “Mark as Complete” button on the lesson page. Sometimes, the automatic marking fails, but you can mark it manually. -
Contact Support:
If none of the above solutions work, reach out directly through Laracasts Support and describe your issue. Include your browser/OS details and any relevant console errors.
Extra Troubleshooting for Developers:
If you’re comfortable with inspecting the network requests, you might want to look for any failed API calls when the lesson should be marked complete. If you see a failed request, you can share the error details with support for a faster resolution.
Example of how marking complete might work under the hood:
POST /api/lessons/{lesson_id}/complete
Headers: { Authorization: "Bearer {your_token}" }
Response: { success: true }
If this request is failing or not being sent, it could be a problem with your session, network, or site’s JavaScript.
Let me know if any of these steps help or if you need further assistance!