the first image of imageshow gk always redirects to undefine

Modern e-commerce WordPress theme to build successful online store with WooCommerce support.
GK User
Tue Oct 22, 2013 3:58 pm
Hi, there is a problem
the first image of the slider gk image show, always redirects to undefined article, even if you put another link into the related image in the field alternate text, i tried also to switch image, but no results... the first one always redirect there if you click on it..
i think it's a bug.. any way to solve it?
User avatar
Fresh Boarder

GK User
Tue Oct 22, 2013 8:18 pm
Hi,

I just check first image slide, change URL (altternative text) and it's ok. Could you provide an URL to your website? (here or via PM)
User avatar
Moderator

GK User
Mon Nov 11, 2013 11:50 am
I also have the same issue with the first image of the slider gk image show, always redirects to undefined (Page not found) I have also tried different urls in the field alternate text for the first image. However, If I put the first slide and swap image order to last the url link works?

Another odd think regarding first slide url is in IE the page goes to a page with the follow content:

Code: Select all
\",\"TH-11\":\"Samut Prakan (\u0e2a\u0e21\u0e38\u0e17\u0e23\u0e1b\u0e23\u0e32\u0e01\u0e32\u0e23)\",\"TH-74\":\"Samut Sakhon (\u0e2a\u0e21\u0e38\u0e17\u0e23\u0e2a\u0e32\u0e04\u0e23)\",\"TH-75\":\"Samut Songkhram (\u0e2a\u0e21\u0e38\u0e17\u0e23\u0e2a\u0e07\u0e04\u0e23\u0e32\u0e21)\",\"TH-19\":\"Saraburi (\u0e2a\u0e23\u0e30\u0e1a\u0e38\u0e23\u0e35)\",\"TH-91\":\"Satun (\u0e2a\u0e15\u0e39\u0e25)\",\"TH-17\":\"Sing Buri (\u0e2a\u0e34\u0e07\u0e2b\u0e4c\u0e1a\u0e38\u0e23\u0e35)\",\"TH-33\":\"Sisaket (\u0e28\u0e23\u0e35\u0e2a\u0e30\u0e40\u0e01\u0e29)\",\"TH-90\":\"Songkhla (\u0e2a\u0e07\u0e02\u0e25\u0e32)\",\"TH-64\":\"Sukhothai (\u0e2a\u0e38\u0e42\u0e02\u0e17\u0e31\u0e22)\",\"TH-72\":\"Suphan Buri (\u0e2a\u0e38\u0e1e\u0e23\u0e23\u0e13\u0e1a\u0e38\u0e23\u0e35)\",\"TH-84\":\"Surat Thani (\u0e2a\u0e38\u0e23\u0e32\u0e29\u0e0e\u0e23\u0e4c\u0e18\u0e32\u0e19\u0e35)\",\"TH-32\":\"Surin (\u0e2a\u0e38\u0e23\u0e34\u0e19\u0e17\u0e23\u0e4c)\",\"TH-63\":\"Tak (\u0e15\u0e32\u0e01)\",\"TH-92\":\"Trang (\u0e15\u0e23\u0e31\u0e07)\",\"TH-23\":\"Trat (\u0e15\u0e23\u0e32\u0e14)\",\"TH-34\":\"Ubon Ratchathani (\u0e2d\u0e38\u0e1a\u0e25\u0e23\u0e32\u0e0a\u0e18\u0e32\u0e19\u0e35)\",\"TH-41\":\"Udon Thani (\u0e2d\u0e38\u0e14\u0e23\u0e18\u0e32\u0e19\u0e35)\",\"TH-61\":\"Uthai Thani (\u0e2d\u0e38\u0e17\u0e31\u0e22\u0e18\u0e32\u0e19\u0e35)\",\"TH-53\":\"Uttaradit (\u0e2d\u0e38\u0e15\u0e23\u0e14\u0e34\u0e15\u0e16\u0e4c)\",\"TH-95\":\"Yala (\u0e22\u0e30\u0e25\u0e32)\",\"TH-35\":\"Yasothon (\u0e22\u0e42\u0e2a\u0e18\u0e23)\"},\"US\":{\"AL\":\"Alabama\",\"AK\":\"Alaska\",\"AZ\":\"Arizona\",\"AR\":\"Arkansas\",\"CA\":\"California\",\"CO\":\"Colorado\",\"CT\":\"Connecticut\",\"DE\":\"Delaware\",\"DC\":\"District Of Columbia\",\"FL\":\"Florida\",\"GA\":\"Georgia\",\"HI\":\"Hawaii\",\"ID\":\"Idaho\",\"IL\":\"Illinois\",\"IN\":\"Indiana\",\"IA\":\"Iowa\",\"KS\":\"Kansas\",\"KY\":\"Kentucky\",\"LA\":\"Louisiana\",\"ME\":\"Maine\",\"MD\":\"Maryland\",\"MA\":\"Massachusetts\",\"MI\":\"Michigan\",\"MN\":\"Minnesota\",\"MS\":\"Mississippi\",\"MO\":\"Missouri\",\"MT\":\"Montana\",\"NE\":\"Nebraska\",\"NV\":\"Nevada\",\"NH\":\"New Hampshire\",\"NJ\":\"New Jersey\",\"NM\":\"New Mexico\",\"NY\":\"New York\",\"NC\":\"North Carolina\",\"ND\":\"North Dakota\",\"OH\":\"Ohio\",\"OK\":\"Oklahoma\",\"OR\":\"Oregon\",\"PA\":\"Pennsylvania\",\"RI\":\"Rhode Island\",\"SC\":\"South Carolina\",\"SD\":\"South Dakota\",\"TN\":\"Tennessee\",\"TX\":\"Texas\",\"UT\":\"Utah\",\"VT\":\"Vermont\",\"VA\":\"Virginia\",\"WA\":\"Washington\",\"WV\":\"West Virginia\",\"WI\":\"Wisconsin\",\"WY\":\"Wyoming\",\"AA\":\"Armed Forces (AA)\",\"AE\":\"Armed Forces (AE)\",\"AP\":\"Armed Forces (AP)\",\"AS\":\"American Samoa\",\"GU\":\"Guam\",\"MP\":\"Northern Mariana Islands\",\"PR\":\"Puerto Rico\",\"UM\":\"US Minor Outlying Islands\",\"VI\":\"US Virgin Islands\"}}","plugin_url":"http:\/\/jaktmangallery.com.au\/aboriginalartgallery\/wp-content\/plugins\/woocommerce","ajax_url":"\/aboriginalartgallery\/wp-admin\/admin-ajax.php","ajax_loader_url":"http:\/\/jaktmangallery.com.au\/aboriginalartgallery\/wp-content\/plugins\/woocommerce\/assets\/images\/[email protected]","i18n_select_state_text":"Select an option\u2026","i18n_required_rating_text":"Please select a rating","i18n_no_matching_variations_text":"Sorry, no products matched your selection. Please choose a different combination.","i18n_required_text":"required","i18n_view_cart":"View Basket \u2192","review_rating_required":"yes","update_order_review_nonce":"b6b60b3536","apply_coupon_nonce":"f643894532","option_guest_checkout":"yes","checkout_url":"\/aboriginalartgallery\/wp-admin\/admin-ajax.php?action=woocommerce-checkout","is_checkout":"0","update_shipping_method_nonce":"649e5109fa","cart_url":"http:\/\/jaktmangallery.com.au\/aboriginalartgallery\/cart\/","cart_redirect_after_add":"no"}; /* ]]> */
User avatar
Junior Boarder

GK User
Mon Nov 11, 2013 12:17 pm
Hi @mrwerner, Could you provide an URL to your website? (here or via PM)
User avatar
Moderator

GK User
Tue Nov 12, 2013 1:55 am
Thanks Piotr I sent URL via PM
User avatar
Junior Boarder

GK User
Wed Nov 13, 2013 3:39 am
Hi Piotr,

I noticed Private message rely is still in my outbox are you able to have a look? I really appreciate your help.

Regards Michael
User avatar
Junior Boarder

GK User
Wed Nov 13, 2013 8:50 am
Yes, I read the message, now i know where the problem is, I'll try to fix it and let you know..
User avatar
Moderator

GK User
Sat Nov 16, 2013 5:53 pm
Please edit ShopAndBudy/gavern/widgets.imageshow.php file and change this fragment:
Code: Select all
if($i == 0) {
               echo '<img src="'.$images[$i]->guid.'" class="gk-is-slide" style="z-index: '.$i.';" data-link="'.$links[$i].'" alt="'.$titles[$i].'" />';
            } else {
               echo '<div class="gk-is-slide" data-style="z-index: '.$i.';" data-path="'.$images[$i]->guid.'" data-link="'.$links[$i].'">'.$titles[$i].'</div>';
            }

to:
Code: Select all
if($i == 0) {
               echo '<a href="'.$links[$i].'"><img src="'.$images[$i]->guid.'" style="z-index: '.$i.'; alt="'.$titles[$i].'" /></a>';
            } else {
               echo '<div class="gk-is-slide" data-style="z-index: '.$i.';" data-path="'.$images[$i]->guid.'" data-link="'.$links[$i].'">'.$titles[$i].'</div>';
            }


Let me know if this modification helps.
User avatar
Moderator

GK User
Sun Dec 08, 2013 12:47 am
Hi Piotr,
This problem is reproducible on your theme demo. Just click on the first photo, but outside of the text. (On the lady sunglasses for example). You will jump to undefined (http://demo.gavick.com/wordpress/shop_and_buy/undefined). I suggest fixing problem on your side.

Pozdrawiam,
Bartek
User avatar
Fresh Boarder

GK User
Mon Dec 09, 2013 9:02 am
Hi,

You're right, thanks for your feedback, I just fixed it.

BTW there's a mistake in my earlier code, it should be:
Code: Select all
if($i == 0) {
                echo '<a href="'.$links[$i].'"><img src="'.$images[$i]->guid.'" style="z-index: '.$i.';" alt="'.$titles[$i].'" /></a>';
            } else {
               echo '<div class="gk-is-slide" data-style="z-index: '.$i.';" data-path="'.$images[$i]->guid.'" data-link="'.$links[$i].'">'.$titles[$i].'</div>';
            }
(missing " char after style="z-index: '.$i.';)

pozdrawiam :)
User avatar
Moderator


cron