My problem was the same so I try all that stuff, nada..
The issue was that the image was called "Calm & Collected" so the URL was "products_filter=3630&imgName=Calm&Collected_01&action=layout_info" guess what?
the problem was that the "&" was stripping the URL, so I just change a piece of code:
from
PHP Code:
if ( $_GET['imgName'] == $tmp_image_name ) {
// an image is selected, highlight it
echo '<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\''
. zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $_GET['products_filter']
. '&imgName=' .$tmp_image_name . '&action=layout_edit') . '\'">' . "\n";
// set some details for later usage
$selected_image_file = DIR_WS_CATALOG . $tmp_image_file_medium;
$selected_image_file_large = DIR_WS_CATALOG . $tmp_image_file_large;
$selected_image_link = $tmp_image_link;
$selected_image_name = $tmp_image_name;
$selected_image_suffix = preg_replace("/^".$products_image_base."/", '', $tmp_image_name);
$selected_image_extension = $products_image_extension;
} else {
echo '<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\''
. zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $_GET['products_filter']
. '&imgName=' . $tmp_image_name . '&action=layout_info') . '\'">' . "\n";
}
to
PHP Code:
if ( $_GET['imgName'] == $tmp_image_name ) {
// an image is selected, highlight it
echo '<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\''
. zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $_GET['products_filter']
. '&imgName=' .urlencode($tmp_image_name) . '&action=layout_edit') . '\'">' . "\n";
// set some details for later usage
$selected_image_file = DIR_WS_CATALOG . $tmp_image_file_medium;
$selected_image_file_large = DIR_WS_CATALOG . $tmp_image_file_large;
$selected_image_link = $tmp_image_link;
$selected_image_name = $tmp_image_name;
$selected_image_suffix = preg_replace("/^".$products_image_base."/", '', $tmp_image_name);
$selected_image_extension = $products_image_extension;
} else {
echo '<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\''
. zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $_GET['products_filter']
. '&imgName=' . urlencode($tmp_image_name) . '&action=layout_info') . '\'">' . "\n";
}
note the
PHP Code:
urlencode($tmp_image_name)
that's it..