Can't view added products #5810
-
If i start a new project add latest solidus (tried all version of 4.3.x). You can load the sample data and view those products just fine. If I add my own product test data it will not load. The web server just locks up and can only get out of it by killing the PID. If i run it via foreman than ctrl+c will work to stop it. Tried several versions of Ruby as well. Tried this with mac and linux with same results Not sure what else to provide at this time. It is always at the same point I have attached the console log
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Seems the issue is coming from Solidus not copying the updated version of Solidus_Starter_Frontend The file app/views/cart_line_items/_product_submit.html.erb does not match what is in the frontend repo Line#6 is issue <%= select_tag("quantity", options_for_select((1..product.total_on_hand).to_a, 1), class: 'min-w-[100px]', :onchange => "addToCartButtonPriceChangeHandler('#{product.price}')") %> If you replace this file with what is in the repo you can then view the product page but you can't add to card, it will just timeout again. I assume there are more missing updates to the frontend template. I have made sure i have run selected the starter_frontend during install and even manually rerun the install follow instructions in the frontent repo
I still get outdated files |
Beta Was this translation helpful? Give feedback.
-
Thanks for fixing the formatting. Here is the console output. There is nothing between the time it stops doing anything and you kill it. In this console output i waited about 5 min before I killed it and the last line printed. I also attached the tail of a strace output. If you need any other logging let me know If you review this commit its referencing fixing this issue but the setup is not putting down this updated code from the template.
|
Beta Was this translation helpful? Give feedback.
Had exactly this problem today, the issue is that a soldius 4.3 install pulls the 4.3 branch of the frontend. This has a couple of issues the file already highlighted and the app/views/carts/_cart_item.html.erb
Both are using selects which work for most products but when they have an infinite stock or even a large stock amount the building of the options can either never end or take a very long time and consume all available memory,
This looks like its fixed in the main branch so maybe just backport these files back into the 4.3 branch? Dont know if there are other files like this though,
Problem lines:
_cart_item.html.erb
<%= item_form.select :quantity, (0..variant.total_on_hand).to_a %>