My site is gone blank after cache clear kindly help me here

Published 1 month ago by lettertoamit

my site either gives 161 error or goes blank .

when my route file has

any thing like Route::get('index.php/flush', function(){ Artisan::call('config:cache'); Artisan::call('view:clear'); Artisan::call('cache:clear'); Artisan::call('route:clear'); //Cache::flush(); return redirect('/'); });

it goes blank but when i comment it out and clear route it starts showing exception 161.

NotFoundHttpException in RouteCollection.php line 161:

also i have tried pointing apache to public folder previously site was running fine with pointing out of public folder. but now nothing working.

tykus
tykus
1 month ago (544,610 XP)

Is this a second account; same as @chintan-trivedi?

lettertoamit

chintan is my friend helping me i am the one who screwed the website

tykus
tykus
1 month ago (544,610 XP)

You are getting 500 error responses on everything except / why is that page working; is it a static page inside the public directory?

lettertoamit

because i put die on that page . its index.php which lies parallel to artisan file. not inside public one. try this https://jumpnotes.com/en

Snapey
Snapey
1 month ago (924,495 XP)

undo what you did earlier commenting out the flush route, then try php artisan route:list and post the result

lettertoamit

+--------+----------+----------------------------------------+------------------------------------------+---------- -------------------------------------------------------------------+---------------------------+ | Domain | Method | URI | Name | Action | Middleware | +--------+----------+----------------------------------------+------------------------------------------+---------- -------------------------------------------------------------------+---------------------------+ | | GET|HEAD | / | home | App\Http Controllers\[email protected] | web | | | GET|HEAD | about | about_index | App\Http Controllers\[email protected] | web | | | POST | addNewUsr | new_group_usr | App\Http Controllers\[email protected]newGroupUsr | web,auth | | | GET|HEAD | api/get-city-list | | App\Http Controllers\[email protected] | web,auth | | | GET|HEAD | api/get-code-list | | App\Http Controllers\[email protected] | web,auth | | | GET|HEAD | api/get-state-list | | App\Http Controllers\[email protected] | web,auth | | | GET|HEAD | auth | auth_view | App\Http Controllers\[email protected]_view | web | | | GET|HEAD | becomeTutor | tutorRegisterView | App\Http Controllers\[email protected]_register_view | web,auth,googleAuth | | | POST | becomeTutor | tutorRegister | App\Http Controllers\[email protected]_registeration | web,auth,googleAuth,auth | | | POST | booking_payment | booking_payment | App\Http Controllers\[email protected]_payment | web,auth,googleAuth,auth | | | GET|HEAD | bookings | requestsView | App\Http Controllers\[email protected]_requests | web,auth,googleAuth,auth | | | POST | booktutor | bookTutor | App\Http Controllers\[email protected]_tutor | web,auth,googleAuth,auth | | | POST | cancel_subscription_t | cancel_subscription_t | App\Http Controllers\[email protected]_subscription_t | web,auth | | | GET|HEAD | cancel_subscription_u/{id} | cancel_subscription_u | App\Http Controllers\[email protected]_subscription_u | web,auth | | | GET|HEAD | cancel_subscription_user/{id} | cancel_subscription_user | App\Http Controllers\[email protected]_subscription_user | web,auth | | | GET|HEAD | dashboard/transaction | dashboardTransaction | App\Http | | GET|HEAD | changePass | changePass | App\Http\Controllers\[email protected] | web,auth,googleAuth | | | POST | changePassword | changePass_post | App\Http\Controllers\[email protected]_post | web,auth,googleAuth | | | GET|HEAD | clear-cache | | Closure | web | | | POST | commentpost | notecommentpost | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | config-cache | | Closure | web | | | GET|HEAD | contact | contact | App\Http\Controllers\[email protected]_index | web | | | GET|HEAD | contact_datatable | contact_datatable | App\Http\Controllers\[email protected]_datatable | web,auth | | | POST | contact_reply | contact_reply | App\Http\Controllers\[email protected]_reply | web,auth | | | POST | contactus | contact_post | App\Http\Controllers\[email protected]_post | web | | | POST | create-group | create_group | App\Http\Controllers\[email protected]_group | web,auth | | | GET|HEAD | dashbaord/aboutusedit1 | edit_sec1 | App\Http\Controllers\[email protected]_edit_sec1 | web,auth,googleAuth | | | GET|HEAD | dashboard | dashboard | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/booking_transaction_list | note_transaction_datatable | App\Http\Controllers\[email protected]_booking_transaction_datatable | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/cacenlsubscription/{id} | cancelsubs | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/changepaystatus/{id} | cash_payed | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | POST | dashboard/getTutor | getTutor | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/std_transaction_list | std_transaction_datatable | App\Http\Controllers\[email protected]_transaction_datatable | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/transaction | dashboardTransaction | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/transaction_list | transaction_datatable | App\Http\Controllers\[email protected]_datatable | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/tutor_list | tutor_list | App\Http\Controllers\[email protected]_list_datatable | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/withdraw_cash | cash_withdraw | App\Http\Controllers\[email protected]_datatable | web,auth,googleAuth,auth | | | GET|HEAD | dashboard/withdraw_cash_view | cash_withdraw_view | App\Http\Controllers\[email protected]_withdraw_view | web,auth,googleAuth,auth | | | GET|HEAD | dashboard_contact | dashboard_contact | App\Http\Controllers\[email protected]_contact | web,auth | | | GET|HEAD | deleteConatct/{id} | deleteConatct | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | deleteTutor/{id} | deleteTutor | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | download/{path} | download_file | App\Http\Controllers\[email protected] | web,auth,googleAuth | | | GET|HEAD | downloadPaymentCancel | getStdSubscriptionCancel | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | downloadPaymentReceived | getstdSubscriptionDone | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | POST | download_count | download_count | App\Http\Controllers\[email protected]_count | web,auth,googleAuth,auth | | | GET|HEAD | editprofile | editprofile_index | App\Http\Controllers\[email protected]_index | web,auth,googleAuth,auth | | | POST | editprofile | editprofile_post | App\Http\Controllers\[email protected]_post | web,auth,googleAuth,auth | | | GET|HEAD | faqs | faq_index | App\Http\Controllers\[email protected]_index | web | | | POST | filenotes | fileUpload | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | flush | | Closure | web | | | GET|HEAD | followTutor/{id} | followTutor | App\Http\Controllers\[email protected] | web,auth | | | POST | forgotPass | forgotPass | App\Http\Controllers\Auth\[email protected]_pass | web,guest | | | GET|HEAD | getPaymentCancel | getPaypalPaymentCancel | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | getPaymentDone | getPaypalPaymentDone | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | getTutorLessonPayCancel | getLessonPaymentCancel | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | getTutorLessonPayDone | getLessonPaymentDone | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | group_msg/{id} | get_msg | App\Http\Controllers\[email protected]_get_chat_msg | web,auth | | | GET|HEAD | group_user_check/{id} | group_user_check | App\Http\Controllers\[email protected]_user_check | web,auth | | | GET|HEAD | header-logo | logo_index | App\Http\Controllers\[email protected]_index | web,auth | | | POST | header-logo | logo_post | App\Http\Controllers\[email protected]_post | web,auth | | | GET|HEAD | inbox | inbox_index | App\Http\Controllers\[email protected]_index | web,auth,googleAuth,auth | | | POST | ipn/notify | | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | loadcomments/{id}/{note_id} | loadcomments | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | localization/{lang?} | | App\Http\Controllers\[email protected] | web | | | GET|HEAD | login/callback/facebook | auth.getSocialAuthCallbacksocialCallback | App\Http\Controllers\Auth\[email protected] | web,guest | | | GET|HEAD | login/facebook | fblogin | App\Http\Controllers\Auth\[email protected] | web,guest | | | GET|HEAD | logout | logout | App\Http\Controllers\Auth\[email protected] | web | | | POST | newMsg | newMsgPost | App\Http\Controllers\[email protected] | web,auth | | | POST | not_note_show | not_note_show | App\Http\Controllers\[email protected]_note_show | web,auth | | | POST | not_show | not_show | App\Http\Controllers\[email protected]_show | web,auth | | | POST | note_drop | noteDropSearch | App\Http\Controllers\[email protected] | web,auth | | | POST | note_rate_search | noteRateSearch | App\Http\Controllers\[email protected] | web,auth | | | POST | note_search | noteTextSearch | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | notes | notes_index | App\Http\Controllers\[email protected]_index | web,auth | | | POST | notes | noteUplaod | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | notes/notedelete/{id} | deleteNote | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | POST | notes_tutor_search | notes_tutor_search | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | notes_view | notesView | App\Http\Controllers\[email protected]_view | web,auth,googleAuth | | | POST | notesrating | note_rating | App\Http\Controllers\[email protected]_rating | web,auth,googleAuth,auth | | | POST | oauth2callback | oauth2callback | App\Http\Controllers\Auth\[email protected] | web,guest | | | GET|HEAD | optimize | | Closure | web | | | POST | payment_post | payment_post | App\Http\Controllers\[email protected]_post | web,auth,googleAuth,auth | | | POST | paypalemail | paypal_email | App\Http\Controllers\[email protected]_paypal_email | web,auth | | | GET|HEAD | privacy | privacy | App\Http\Controllers\[email protected]_index | web | | | GET|HEAD | profile | profile_index | App\Http\Controllers\[email protected]_index | web,auth,googleAuth,auth | | | GET|HEAD | profile_view/group_user_check/{id} | group_user_check_profile | App\Http\Controllers\[email protected]_user_check | web,auth | | | GET|HEAD | profile_view/{id} | profile_view | App\Http\Controllers\[email protected]_profile_view | web,auth,googleAuth,auth | | | GET|HEAD | profile_view1/{id} | profile_view1 | App\Http\Controllers\[email protected]_profile_view1 | web,auth,googleAuth,auth | | | POST | register | signup | App\Http\Controllers\Auth\[email protected] | web,guest | | | GET|HEAD | route-cache | | Closure | web | | | POST | setAuthentication | setAuthentication | App\Http\Controllers\[email protected] | web | | | POST | setLanguage | setLanguage | App\Http\Controllers\[email protected] | web | | | GET|HEAD | setting | settingview | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | POST | signin | signin | App\Http\Controllers\Auth\[email protected] | web,guest | | | POST | single_note/multi_download | multi_download | App\Http\Controllers\[email protected]_download | web,auth,googleAuth,auth | | | GET|HEAD | single_note/{id} | single_note | App\Http\Controllers\[email protected]_single_note | web,auth,googleAuth,auth | | | GET|HEAD | slider-update | slider_index | App\Http\Controllers\[email protected]_index | web,auth | | | POST | slider-update | slider_post | App\Http\Controllers\[email protected]_post | web,auth | | | GET|HEAD | sms | | Closure | web | | | GET|HEAD | social_shared/{token} | social_shared | App\Http\Controllers\[email protected]_shared | web,auth,googleAuth | | | GET|HEAD | stdBookings | tutorbookings | App\Http\Controllers\[email protected]_bookings | web,auth,googleAuth,auth | | | POST | std_profile | std_profile_completion | App\Http\Controllers\[email protected]_profile_edit | web,auth,googleAuth,auth | | | POST | std_profile_pic | std_profile_pic | App\Http\Controllers\[email protected]_profile_pic | web,auth,googleAuth,auth | | | POST | std_reply | std_reply | App\Http\Controllers\[email protected]_reply | web,auth | | | GET|HEAD | step_authentication | step_authentication | App\Http\Controllers\Auth\[email protected]_authentication | web,guest | | | GET|HEAD | stripe-config | stripeConfig | Closure | web | | | GET|HEAD | stripe-setup | | App\Http\Controllers\[email protected]_setup | web,auth | | | POST | subscription_payment | download_payment | App\Http\Controllers\[email protected]_payment | web,auth,googleAuth,auth | | | GET|HEAD | terms_conditions | terms | App\Http\Controllers\[email protected]_index | web | | | GET|HEAD | testabout | about_index1 | App\Http\Controllers\[email protected] | web | | | GET|HEAD | testauth | auth_view_test | App\Http\Controllers\[email protected]_view_test | web | | | GET|HEAD | testbookings | requestsView_test | App\Http\Controllers\[email protected]_requests_test | web,auth,googleAuth,auth | | | POST | testbraintree | brainTest | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | testcontact | contact_test | App\Http\Controllers\[email protected]_index_test | web | | | GET|HEAD | testeditprofile | editprofile_index_test | App\Http\Controllers\[email protected]_index_test | web,auth,googleAuth,auth | | | GET|HEAD | testfaqs | faq_index_test | App\Http\Controllers\[email protected]_index_test | web | | | GET|HEAD | testhome | homenew | App\Http\Controllers\[email protected] | web | | | GET|HEAD | testnotes | notes_index_test | App\Http\Controllers\[email protected]_index_test | web,auth | | | GET|HEAD | testnotes_view | notesView_test | App\Http\Controllers\[email protected]_view_test | web,auth,googleAuth | | | GET|HEAD | testprofile_view/{id} | profile_view_test | App\Http\Controllers\[email protected]_profile_view_test | web,auth,googleAuth,auth | | | GET|HEAD | testsingle_note/{id} | single_note_test | App\Http\Controllers\[email protected]_single_note_test | web,auth,googleAuth,auth | | | GET|HEAD | teststdBookings | tutorbookings_test | App\Http\Controllers\[email protected]_bookings_test | web,auth,googleAuth,auth | | | GET|HEAD | testtutor_notes/{id} | tutor_notes_test | App\Http\Controllers\[email protected]_notes_test | web,auth | | | GET|HEAD | testtutors | tutorsView_test | App\Http\Controllers\[email protected]_index_test | web,auth,googleAuth,auth | | | GET|HEAD | thankyou | thankyou | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | thankyoubooking | thankyoubooking | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | GET|HEAD | transcript_download/{path} | transcript_download | App\Http\Controllers\[email protected]_download | web,auth,googleAuth | | | POST | tutor/bookShedule | bookShedule | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | tutor/schedule | | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | tutor/scheduleGet | | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | tutor/set-schedule | setSchedule | App\Http\Controllers\[email protected] | web,auth | | | POST | tutor/set-schedule/ajax | submitSheduleAjax | App\Http\Controllers\[email protected] | web,auth | | | POST | tutor/submitShedule | submitShedule | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | tutor/testset-schedule | setSchedule_test | App\Http\Controllers\[email protected]_test | web,auth | | | GET|HEAD | tutorBookings_data | tutorbooking_datatable | App\Http\Controllers\[email protected]_datatable | web,auth,googleAuth,auth | | | GET|HEAD | tutorPayment | payment_index | App\Http\Controllers\[email protected] | web,auth,googleAuth,auth | | | POST | tutorRatting | tutorRatting | App\Http\Controllers\[email protected]_ratting | web,auth,googleAuth,auth | | | POST | tutorRattingSubmit | tutor_ratting_2 | App\Http\Controllers\[email protected]_ratting_2 | web,auth,googleAuth,auth | | | POST | tutorRattingupdate | tutor_rating_update | App\Http\Controllers\[email protected]_rating_update | web,auth,googleAuth,auth | | | GET|HEAD | tutor_approval/{id} | tutor_approval | App\Http\Controllers\[email protected]_approval | web,auth,googleAuth,auth | | | GET|HEAD | tutor_notes/{id} | tutor_notes | App\Http\Controllers\[email protected]_notes | web,auth | | | POST | tutor_search | tutorSearch | App\Http\Controllers\[email protected] | web,auth | | | GET|HEAD | tutors | tutorsView | App\Http\Controllers\[email protected]_index | web,auth,googleAuth,auth | | | GET|HEAD | unFollowTutor/{id} | unFollowTutor | App\Http\Controllers\[email protected] | web,auth | | | POST | updatePass | updatePass | App\Http\Controllers\Auth\[email protected] | web,guest | | | GET|HEAD | updatePassView/{token} | updatePassView | App\Http\Controllers\Auth\[email protected] | web,guest | | | GET|HEAD | user_follower | user_follower | App\Http\Controllers\[email protected]_follower | web,auth,googleAuth,auth | | | GET|HEAD | user_following | user_following | App\Http\Controllers\[email protected]_following | web,auth,googleAuth,auth | | | GET|HEAD | user_notes/{id} | user_notes | App\Http\Controllers\[email protected]_notes | web,auth | | | GET|HEAD | user_subscriber | user_subscriber | App\Http\Controllers\[email protected]_subscriber | web,auth,googleAuth,auth | | | GET|HEAD | user_subscribing | user_subscribing | App\Http\Controllers\[email protected]_subscribing | web,auth,googleAuth,auth | | | GET|HEAD | userprofile_view/group_user_check/{id} | group_user_check_profile | App\Http\Controllers\[email protected]_user_check | web,auth | | | GET|HEAD | userprofile_view/{id} | userprofile_view | App\Http\Controllers\[email protected]_profile_view | web,auth,googleAuth,auth | | | GET|HEAD | verifyemail/{token} | verifyemail | App\Http\Controllers\Auth\[email protected] | web,auth,googleAuth,guest | | | GET|HEAD | view-clear | | Closure | web | | | POST | withdraw_datatable | paypal_email | App\Http\Controllers\[email protected]_paypal_email | web,auth | +--------+----------+----------------------------------------+------------------------------------------+---------- -------------------------------------------------------------------+---------------------------+

tykus
tykus
1 month ago (544,610 XP)

That'll be your problem.

because i put die on that page . its index.php which lies parallel to artisan file. not inside public one.

Is you server configured to serve from the project root instead of the public directory? Laravel cannot be bootstrapped if you are bypassing the public/index.php file.

lettertoamit

i tried both nothing working. previously site was working on root.and not in public directory .if you want i can do public folder also. but still same problem persist

tykus
tykus
1 month ago (544,610 XP)

Just so we're clear. The only page working is / which is an index.php file in the project root? How is your web server configured to handle Laravel requests exactly?

If I visit https://jumpnotes.com/public/index.php/about I will get a 301 redirect response to https://jumpnotes.com/about which is returning 500

lettertoamit

.................conf here .............

DocumentRoot "/var/www/html" ServerName www.jumpnotes.com:443

......................... htacess here ........................

DirectoryIndex index.php

php_value upload_max_filesize 70M php_value post_max_size 70M

RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]

RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301]

RewriteCond %{REQUEST_URI} !(.css|.js|.png|.jpg|.gif|robots.txt)$ [NC] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]

RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^index.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/public/ RewriteRule ^(css|js|images)/(.*)$ public/$1/$2 [L,NC]

lettertoamit

@Snapey did you get a chance to check php artisan route:list result.

tykus
tykus
1 month ago (544,610 XP)

Someone has gone to an awful lot of work to serve the application from the project root rather than the public directory. Was there something in the {PROJECT_ROOT}/index.php file which was previously passing control into Laravel's main entry point {PROJECT_ROOT}/public/index.php which you have overwritten?

lettertoamit

no nothing was there .it was plain laravel as before

tykus
tykus
1 month ago (544,610 XP)

Your DocumentRoot is /var/www/html; your DirectoryIndex is index.php, so how was this working before?

Just for the sake of a sanity check, can you point your webserver to /var/www/html/public and see if this will bootstrap the Laravel app?

lettertoamit

I did that check before but it was not working in that either.

Please sign in or create an account to participate in this conversation.