For example, I have a case where a file actually named PC074941_0.jpg appears in the view listing as PC074941.jpg, and this is not helpful. The view correctly links to the proper file.
I see that this is because in the data table 'file_managed' the name of the file is recorded as PC074941.jpg and its URI as public://frontpageimages/PC074941_0.jpg
This situation arises when uploading a file that has an already used name. The upload process has added the suffix _0 in the URI but has not modified the name. Surely it would be more helpful if it were to modify the name as well?
Recent comments
Hey there! That error message is definitely a head-scratcher. Even though you uninstalled Views, it sounds like something is still referencing a Views-related constant. Maybe a custom module or...
VIEWS_STORAGE_OVERRIDE
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout