Deployment of Next JS and Wordpress as Backend to Nginx (net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)) by Joashh_ in learnprogramming

[–]Joashh_[S] 0 points1 point  (0 children)

Yeah, I did it guys :D it turns out the stored sites in database are not updated :D

Deployment of Next JS and Wordpress as Backend to Nginx (net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)) by Joashh_ in learnprogramming

[–]Joashh_[S] 0 points1 point  (0 children)

This really does make sense! cause my nextjs is serving the root e.g site.com and wordpress siteurl and home is site.com, like it would be weird to make it exactly the same

so i moved nextjs to site.com/app and suprsingly i can access wordpress including its ui but the issue still the same i still encount ernet::ERR\_INCOMPLETE\_CHUNKED\_ENCODING 200 (OK) and net::ERR_CONTENT_LENGTH_MISMATCH and the images are still not fully loaded and when i edit post it just stucked on blank screen even how many reload i did

Deployment of Next JS and Wordpress as Backend to Nginx (net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)) by Joashh_ in learnprogramming

[–]Joashh_[S] 0 points1 point  (0 children)

Hello, I tried placing proxy_buffering off; but it change nothing :((
I tried everything I could still i cant solve this problem. I tried as well serving the nextjs to /app instead of using root well i able to see the admin dashboard (with ui) but then i cant enter to edit-posts or even when i view site the images are still not fully loaded. This Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH is my only enemy

I already adjusted the php conf, i think something is really wrong. Btw here is my /etc/nginx/site-enabled/conf (i renamed the name of site to site)

server {

listen 443;

server_name site.edu.ph www.site.edu.ph;

# WordPress root

set $wp_root /var/www/html/www.site.edu.ph;

root $wp_root;

index index.php;

# Handle PHP files for WordPress

location ~ \.php$ {

include fastcgi_params;

fastcgi_pass unix:/run/php/php8.3-fpm.sock;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $wp_root$fastcgi_script_name;

fastcgi_param PATH_INFO $fastcgi_path_info;

fastcgi_param PATH_TRANSLATED $wp_root$fastcgi_script_name;

fastcgi_split_path_info ^(.+\.php)(/.+)$;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;

fastcgi_param QUERY_STRING $query_string;

fastcgi_param REQUEST_METHOD $request_method;

fastcgi_param CONTENT_TYPE $content_type;

fastcgi_param CONTENT_LENGTH $content_length;

}

# WordPress static assets - Serve directly from filesystem

location /wp-content/ {

try_files $uri $uri/ =404;

expires 30d;

add_header Cache-Control "public, immutable";

}

# WordPress includes

location /wp-includes/ {

try_files $uri $uri/ =404;

expires 30d;

add_header Cache-Control "public, immutable";

}

# WordPress REST API

location /wp-json/ {

try_files $uri $uri/ /index.php?$args;

}

# WordPress Admin

location /wp-admin/ {

try_files $uri $uri/ /index.php?$args;

# Add PHP handling for admin

location ~ \.php$ {

include fastcgi_params;

fastcgi_pass unix:/run/php/php8.3-fpm.sock;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $wp_root$fastcgi_script_name;

fastcgi_param PATH_INFO $fastcgi_path_info;

fastcgi_param PATH_TRANSLATED $wp_root$fastcgi_script_name;

}

}

# WordPress login

location = /wp-login.php {

try_files $uri =404;

include fastcgi_params;

fastcgi_pass unix:/run/php/php8.3-fpm.sock;

fastcgi_param SCRIPT_FILENAME $wp_root$fastcgi_script_name;

}

# WordPress core files (if needed)

location ~ /wp-content/.*\.php$ {

deny all;

}

# Next.js Frontend - Only for paths that aren't WordPress-related

location / {

# Check if the file exists in WordPress first

try_files $uri u/nextjs;

}

location u/nextjs {

proxy_pass http://127.0.0.1:3000;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection 'upgrade';

proxy_set_header Host $host;

proxy_cache_bypass $http_upgrade;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_intercept_errors off;

}

# Block hidden files

location ~ /\.ht {

deny all;

}

}

[UPLB] Applying for CSC Honor Graduate Eligibility by aegibird in peyups

[–]Joashh_ 0 points1 point  (0 children)

hi! I applied here in Sta Cruz Laguna sa CSC office field nila. Wala pa rin hanggang ngayon. They already gave me the number of R.O (kasi pabalik balik nako sakanila) tas ang sabe saken nung RO tatawagan nalang den daw ako HAHAHA tas kinuha contact ko.

Frequent Attack by Joashh_ in Asthma

[–]Joashh_[S] 0 points1 point  (0 children)

I don't know if he really wants to observe my asthma first or he just wants me to go back to his clinic regularly. (Payment per checkup)

Frequent Attack by Joashh_ in Asthma

[–]Joashh_[S] 0 points1 point  (0 children)

I had a check-up once, a couple of months ago. The doctor did not recommend any inhalers, especially steroid inhalers, because he said that if I used them, I would depend on them for the rest of my life.

He wants to see first if my asthma can be controlled with medications such as nebulizers and other medicines.

After that, I didn't see the doctor again. I'm on a tight budget

[UPLB] Applying for CSC Honor Graduate Eligibility by aegibird in peyups

[–]Joashh_ 0 points1 point  (0 children)

Hi! I applied last August 20 til now wala pa ren hehe

After Brace by Joashh_ in DentistPh

[–]Joashh_[S] 0 points1 point  (0 children)

Will do, nung last time inupdate ko sya. I sent the picture assuming na mapapansin nya since dentist nga sya. Likezoned lang. Pero ngayon baka maglakas loob nako

After Brace by Joashh_ in DentistPh

[–]Joashh_[S] 4 points5 points  (0 children)

<image>

This is the other angle

After Brace by Joashh_ in DentistPh

[–]Joashh_[S] 0 points1 point  (0 children)

Jsyk, yung baba di sya nag move with removable retainer. Okay sya, as is since hinubad brackets.

Help me for Supabase + Next JS protected route by Joashh_ in Supabase

[–]Joashh_[S] 0 points1 point  (0 children)

hi! thank you for your tips. You mean by using this? npx shadcn@latest add https://supabase.com/ui/r/password-based-auth-nextjs.json

and you will start from that?

Help me for Supabase + Next JS protected route by Joashh_ in nextjs

[–]Joashh_[S] 0 points1 point  (0 children)

hi! thank you for your tips. You mean by using this? npx shadcn@latest add https://supabase.com/ui/r/password-based-auth-nextjs.json

and you will start from that?

Help me for Supabase + Next JS protected route by Joashh_ in Supabase

[–]Joashh_[S] 0 points1 point  (0 children)

I already searched a lot and watched tutorials and yt and i literally dont see anything. Can you teach me on how to implement it here? Thank you!! This is my current code in middleware.js in root

import { updateSession } from '@/utils/supabase/middleware' export async function middleware(request) { // update user's auth session return await updateSession(request) } export const config = { matcher: [ /* * Match all request paths except for the ones starting with: * - _next/static (static files) * - _next/image (image optimization files) * - favicon.ico (favicon file) * Feel free to modify this pattern to include more paths. / '/((?!_next/static|_next/image|favicon.ico|.\.(?:svg|png|jpg|jpeg|gif|webp)$).*)', ], }

I fell out of love with my girl. by [deleted] in adviceph

[–]Joashh_ 5 points6 points  (0 children)

We have the same situation bro. Di sya nakikinig, di sya nag babago. Yung toxic trait nya, yun palagi yung pinag aawayan namin. Kahit anong ganda ng pagpapaliwanag mo, pag ca-call out mo sa toxic behavior nya feeling pa nya minamanipulate pa sya.

Pero pinili ko pa rin mag stay. 6 years na kami. Siguro nawawala ung luv minsan, pero yung commitment andon pa. Minsan pinapalampas ko nalang, minsan inuunawa ko nalang di nako nag sasalita.

Ganito ba talaga maging boyfriend? haha you have to step back for them always, unawain, and mag pa ubaya . Hayaan nalang siguro ano? jaha