How to get more than 7 images to show in gallery?

Open to all! Ask other shopowners for help.
Post Reply
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

How to get more than 7 images to show in gallery?

Post by lecarlb »

I'm using Phoenix version 1.0.8.20 and I'm having an issue showing more than 7 images on the product page. It has been confirmed that more than 7 images can be uploaded when adding a product. Here's what I have in gallery: Thumbnail Width: col-4 col-sm-6 col-lg-4 col-xl-1.

Another note is I upload images into a subfolder and use the latest version of Kissit Thumbnailer.

Has anyone experienced this?
If so, what was the solution?
What should I check in settings and the database?

I'm not sure if it's a bug or a wrong setting. Hopefully, we'll discover either.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 749
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: How to get more than 7 images to show in gallery?

Post by Kofod95 »

First, are there more than seven images in table.products_images with a products_id for which you have more than seven images?

If so, when you look at the source code for that product, do you have more than seven times <img ... in the thumbnail-section?

And just to be sure: do you have a space or any funky characters in the sub-folder name?

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
User avatar
burt
Core Team
Posts: 4561
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 422 times

Re: How to get more than 7 images to show in gallery?

Post by burt »

lecarlb wrote: Thu Oct 19, 2023 10:20 am Here's what I have in gallery: Thumbnail Width: col-4 col-sm-6 col-lg-4 col-xl-1.
this should not affect it. Here you are simply saying;

XS: 3 column layout
SM: 2 column layout
LG: 3 column layout
XL: 12 column layout

Whether you have 1 extra image or 100, the column layout doesn't matter - all image should show.

Here is image showing 12 extra images (for this layout I used col-sm-2, IE 6 columns of images), so I am pretty certain core code is OK;
12.jpg
You might like to link to your page showing only 7 images ?
You do not have the required permissions to view the files attached to this post.
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Re: How to get more than 7 images to show in gallery?

Post by lecarlb »

Kofod95 wrote: Thu Oct 19, 2023 12:14 pm First, are there more than seven images in table.products_images with a products_id for which you have more than seven images?

If so, when you look at the source code for that product, do you have more than seven times <img ... in the thumbnail-section?

And just to be sure: do you have a space or any funky characters in the sub-folder name?

//Daniel
No there are not more than 7 images in that table. On the source code, there is no more than 7 images. And there's no special characters in the subfolder name.
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Re: How to get more than 7 images to show in gallery?

Post by lecarlb »

burt wrote: Thu Oct 19, 2023 2:02 pm
lecarlb wrote: Thu Oct 19, 2023 10:20 am Here's what I have in gallery: Thumbnail Width: col-4 col-sm-6 col-lg-4 col-xl-1.
this should not affect it. Here you are simply saying;

XS: 3 column layout
SM: 2 column layout
LG: 3 column layout
XL: 12 column layout

Whether you have 1 extra image or 100, the column layout doesn't matter - all image should show.

Here is image showing 12 extra images (for this layout I used col-sm-2, IE 6 columns of images), so I am pretty certain core code is OK;

12.jpg

You might like to link to your page showing only 7 images ?
https://btdogcollars.com/product_info.p ... s_id=99500
I know I uploaded more than 15 images for this product and the main image is in the products table and only 6 images appear in the products_images table.
User avatar
burt
Core Team
Posts: 4561
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 422 times

Re: How to get more than 7 images to show in gallery?

Post by burt »

You might like to check your admin product adding/editing page for this product to see how many images are uploaded. If the DB says 6 (and the shopside page shows 6), it should be 6.

Add some more...as I wonder if your host maybe has some sort of "upload" throttle or timeout or something. So although you inserted 15 in the adding/editing, maybe some just didn't make it...
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Re: How to get more than 7 images to show in gallery?

Post by lecarlb »

burt wrote: Thu Oct 19, 2023 3:45 pm You might like to check your admin product adding/editing page for this product to see how many images are uploaded. If the DB says 6 (and the shopside page shows 6), it should be 6.

Add some more...as I wonder if your host maybe has some sort of "upload" throttle or timeout or something. So although you inserted 15 in the adding/editing, maybe some just didn't make it...
I did as you instructed, no success. I attempted to add 3 more images and I attempted to add just 1 and they didn't upload. So I decided to see if anything in the error logs around the same time I made the attempted uploads would give a clue

Code: Select all

[Thu Oct 19 16:24:46.672597 2023] [proxy_fcgi:error] [pid 2281416:tid 140203704448576] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "manufacturers_name" in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/includes/classes/manufacturer.php on line 26', referer: https://xxxxxxxxxx.com/index.php?cPath=13_2442_2443
[Thu Oct 19 16:25:14.890539 2023] [proxy_fcgi:error] [pid 2281417:tid 140204593616448] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Deprecated:  The tep_href_link function has been deprecated. in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/adminBTDC1/includes/functions/html_output.php on line 51', referer: https://xxxxxxxxxx.com/adminBTDC1/catalog.php?cPath=2443&pID=99500
[Thu Oct 19 16:26:20.321701 2023] [proxy_fcgi:error] [pid 2281417:tid 140203503121984] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "manufacturers_name" in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/includes/classes/manufacturer.php on line 26', referer: https://xxxxxxxxxx.com/index.php?cPath=13_2442_2443
[Thu Oct 19 16:26:53.400233 2023] [proxy_fcgi:error] [pid 2281416:tid 140204593616448] [client 51.222.253.2:0] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "manufacturers_name" in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/includes/classes/manufacturer.php on line 26'
[Thu Oct 19 16:27:21.323848 2023] [proxy_fcgi:error] [pid 2281417:tid 140203494729280] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/vhosts/xxxxxxxxxx.com/:/tmp//var/log/www/tep/page_parse_time.log) in Unknown on line 0PHP message: PHP Warning:  File upload error - unable to create a temporary file in Unknown on line 0', referer: https://xxxxxxxxxx.com/adminBTDC1/catalog.php?cPath=2443&pID=99500&action=new_product
[Thu Oct 19 16:27:21.414213 2023] [proxy_fcgi:error] [pid 2281417:tid 140203620554304] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Deprecated:  The tep_href_link function has been deprecated. in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/adminBTDC1/includes/functions/html_output.php on line 51', referer: https://xxxxxxxxxx.com/adminBTDC1/catalog.php?cPath=2443&pID=99500&action=new_product
[Thu Oct 19 16:27:21.608964 2023] [proxy_fcgi:error] [pid 2281417:tid 140203620554304] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Warning:  Attempt to read property "sibling" on null in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/includes/hooks/admin/catalog/linkSibling.php on line 26', referer: https://xxxxxxxxxx.com/adminBTDC1/catalog.php?cPath=2443&pID=99500&action=new_product
[Thu Oct 19 16:27:27.619549 2023] [proxy_fcgi:error] [pid 2281417:tid 140203612161600] [client 71.28.224.173:0] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "manufacturers_name" in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/includes/classes/manufacturer.php on line 26', referer: https://xxxxxxxxxx.com/index.php?cPath=13_2442_2443
User avatar
burt
Core Team
Posts: 4561
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 422 times

Re: How to get more than 7 images to show in gallery?

Post by burt »

open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)

is the issue in uploading. Speak with the host, see what they say.
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Re: How to get more than 7 images to show in gallery?

Post by lecarlb »

burt wrote: Thu Oct 19, 2023 4:47 pm open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)

is the issue in uploading. Speak with the host, see what they say.
I think that resolved the issue. I added an 8th image and it uploaded. The server has been set to allow all uploads.

I'll try adding more later when I get some free time and report back.

Thanks for your help


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply