Claudia
-
Posts
289 -
Joined
-
Last visited
-
Days Won
2
Posts posted by Claudia
-
-
cubecart.class
Line 2197 Red box with x: syntax error, unexpected "="
The only difference between stock and mine is this edit I made many versions ago starting at line 2644:
$delivery = array(
'url' => $url,
'method' => $order['ship_method'],
'product' => $order['ship_product'],
'tracking' => $order['ship_tracking'],
'all_ship_date' => $order['all_ship_date'],
'venue_ship_product' => $order['venue_ship_product'],
'all_shipping_used' => $order['all_shipping_used'],
'date' => (!empty($order['ship_date']) && $order['ship_date']!=='0000-00-00') ? formatDispatchDate($order['ship_date']) : ''
);
}
unset($ship_class);
} else {
$delivery = array(
'url' => filter_var($order['ship_tracking'], FILTER_VALIDATE_URL) ? $order['ship_tracking'] : '',
'method' => $order['ship_method'],
'product' => $order['ship_product'],
'tracking' => $order['ship_tracking'],
'all_ship_date' => $order['all_ship_date'],
'venue_ship_product' => $order['venue_ship_product'],
'all_shipping_used' => $order['all_shipping_used'],
'date' => (!empty($order['ship_date']) && $order['ship_date']!=='0000-00-00') ? formatDispatchDate($order['ship_date']) : ''
);
} -
"So, you added the debugMessage statement at line 279? Then two lines of code later it's gone? " These errors were before I did the debug?
The Product Appearances was discussed via PM. I got this error after I made the edit. I checked. The edit is there
I'll check my cubecart.class file
-
It's there too:
Array ( [cat_id] => 67 [cat_name] => Banks and Bells [cat_desc] => [cat_parent_id] => 0 [cat_image] => 860 [per_ship] => 0.00 [item_ship] => 0.00 [item_int_ship] => 0.00 [per_int_ship] => 0.00 [hide] => 0 [seo_meta_title] => Banks and Bells [seo_meta_description] => Buy your vintage and collectible banks and bells at low prices with fast shipping [seo_meta_keywords] => [priority] => 11 [status] => 1 [cat_hier_position] => 0 [cat_parse] => 0 )
This is my cPanel error log
[01-Sep-2024 19:22:02 America/Louisville] PHP Warning: Invalid Security Token in /home/xx/public_html/classes/sanitize.class.php on line 162
[01-Sep-2024 19:22:02 America/Louisville] PHP Warning: Undefined global variable $_GET in /home/xx/public_html/includes/functions.inc.php on line 218
[01-Sep-2024 19:22:03 America/Louisville] PHP Warning: Invalid Security Token in /home/xx/public_html/classes/sanitize.class.php on line 162
[01-Sep-2024 19:22:03 America/Louisville] PHP Warning: Undefined global variable $_GET in /home/xx/public_html/includes/functions.inc.php on line 218
[01-Sep-2024 22:00:16 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/xx/public_html/classes/catalogue.class.php on line 281
[01-Sep-2024 23:49:38 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/xx/public_html/classes/catalogue.class.php on line 281
[02-Sep-2024 00:29:08 America/Louisville] PHP Warning: Undefined array key "product_id" in /home/xx/public_html/modules/plugins/Product_Appearances/hooks/admin.product.tabs.php on line 5
[02-Sep-2024 02:07:34 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/xx/public_html/classes/catalogue.class.php on line 281
[02-Sep-2024 03:06:09 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/xx/public_html/classes/catalogue.class.php on line 281
[02-Sep-2024 04:30:28 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/xx/public_html/classes/catalogue.class.php on line 281
[02-Sep-2024 05:32:26 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/xx/public_html/classes/catalogue.class.php on line 281
[02-Sep-2024 05:34:56 America/Louisville] PHP Warning: Security Warning: Illegal array key "@zdi/Powershell" was detected and was removed. in /home/xxx/public_html/classes/sanitize.class.php on line 121
[02-Sep-2024 12:58:32 America/Louisville] PHP Warning: Undefined array key "cart_order_id" in /home/xxx/public_html/classes/cubecart.class.php on line 2796 -
It's there:
Debug Messages:
[0]Array ( [cat_id] => 22 [cat_name] => Beer and Liquor [cat_desc] => [cat_parent_id] => 0 [cat_image] => 502 [per_ship] => 0.00 [item_ship] => 0.00 [item_int_ship] => 0.00 [per_int_ship] => 0.00 [hide] => 0 [seo_meta_title] => Beer and Liquor Collectibles - CamBargainStore [seo_meta_description] => Buy all your vintage beer and liquor collectibles here. Great products at low prices. More to come! [seo_meta_keywords] => [priority] => 12 [status] => 1 [cat_hier_position] => 0 [cat_parse] => 0 )
-
yes it is
I just reuploaded the file with the stock file for 6.5.6 - and I'll see if I get any warnings. In the admin error log it says category discount table doesn't exist, but I see it has been addressed in GitHub
I'll go ahead and add it
-
Here's my code:
if (isset($catData) && is_array($catData)) {
if($catData['cat_parse']=='1') {
$catData['cat_desc'] = $GLOBALS['smarty']->fetch('string:'.$catData['cat_desc']);
}
$vars['category'] = $catData; -
It's there but the type is int(10) Should I change it?
-
I keep getting this
[01-Sep-2024 02:00:41 America/Louisville] PHP Warning: Undefined array key "cat_parse" in /home/cambarga/public_html/classes/catalogue.class.php on line 281
What to do if anything .... Thanks
-
Thanks Brian
-
I'm not exactly sure where to put it. I did this but it didn't work.
<li><a href="{$image.source}" class="th image-gallery">
-
Just noticed this. When you hover over thumbnails on the product page they don't move to the large image.
Any help is appreciated.
Here's my custom code:
<div class="row">
<ul class="{if !is_array($GALLERY) || count($GALLERY) < 2}hide-important {/if}clearing-thumbs small-block-grid-5 medium-block-grid-6 large-block-grid-10 marg-top thinmarg-side" data-clearing>
{foreach from=$GALLERY item=image}
<li><a href="{$image.source}" class="th"><img src="{$image.small}" data-image-swap="{$image.medium}" data-caption="{if !empty($image.image_tags.title)}{$image.image_tags.title}{else}{$PRODUCT.name}{/if}"></a></li>
{/foreach}
</ul>
</div> -
That worked Brian. Thank you!
-
I'm not entirely sure where to put this and what code of mine needs to go
-
admin/skin/customer.index
<thead>
<tr>
<td width="32"> </td>
<td>{$THEAD.status}</td>
<td>{$THEAD.type}</td>
<td>{$THEAD.customer}</td>
<td>{$THEAD.venue_id}</td>
<td>{$THEAD.venue_sold_site}</td>
<td>{$THEAD.email}</td>
<td>{$THEAD.registered}</td>
<td>{$THEAD.no_orders}</td>
<td> </td>
</tr>
</thead>
<td><a href="{$customer.edit}">{$customer.last_name}, {$customer.first_name}</a> {if !empty($customer.groups)}({$customer.groups}){/if}</td>
<td><span class="editable" name="venue_id[{$customer.customer_id}]">{$customer.venue_id}</span></td>
<td><span class="editable" name="venue_sold_site[{$customer.customer_id}]">{$customer.venue_sold_site}</span></td>
<td>{$customer.email}</td>
<fieldset><legend>{$LANG.account.contact_details}</legend>
<div><label style="width: 15em" for="venue_sold_site">Venue Sold Site</label><span><input type="text" name="customer[venue_sold_site]" id="venue_sold_site" value="{$CUSTOMER.venue_sold_site}" class="textbox"></span></div>
<div><label style="width: 15em" for="venue_id">Venue ID</label><span><input type="text" name="customer[venue_id]" id="venue_id" value="{$CUSTOMER.venue_id}" class="textbox"></span></div>
<div><label style="width: 15em" for="venue_email">Venue eMail</label><span><input type="text" name="customer[venue_email]" id="venue_email" value="{$CUSTOMER.venue_email}" class="textbox"></span></div>
admin/source/customer.index.inc
$GLOBALS['main']->successMessage($lang['customer']['notify_groups_delete']);
$send_redirect = true;
}
if (isset($_POST['venue_sold_site']) && is_array($_POST['venue_sold_site']) && Admin::getInstance()->permissions('customers', CC_PERM_EDIT)) {
foreach ($_POST['venue_sold_site'] as $customer_id => $venue_sold_site) {
$result = $result || $GLOBALS['db']->update('CubeCart_customer', array('venue_sold_site' => $venue_sold_site), array('customer_id' => (int)$customer_id));
}
if ($result) {
$GLOBALS['main']->successMessage("Some or all venue sold sites updated.");
}
$send_redirect = true;
}
if (isset($_POST['venue_id']) && is_array($_POST['venue_id']) && Admin::getInstance()->permissions('customers', CC_PERM_EDIT)) {
foreach ($_POST['venue_id'] as $customer_id => $venue_id) {
$result = $result || $GLOBALS['db']->update('CubeCart_customer', array('venue_id' => $venue_id), array('customer_id' => (int)$customer_id));
}
if ($result) {
$GLOBALS['main']->successMessage("Some or all venue id updated.");
}
$send_redirect = true;
}
$thead_sort = array(
'status' => $GLOBALS['db']->column_sort('status', $lang['common']['status'], 'sort', $current_page, $_GET['sort']),
'customer' => $GLOBALS['db']->column_sort('customer', $lang['customer']['title_customer'], 'sort', $current_page, $_GET['sort']),
'venue_sold_site' => $GLOBALS['db']->column_sort('venue_sold_site', 'Sold Site', 'sort', $current_page, $_GET['sort']),
'venue_id' => $GLOBALS['db']->column_sort('venue_id', 'Venue ID', 'sort', $current_page, $_GET['sort']),
'registered' => $GLOBALS['db']->column_sort('registered', $lang['customer']['date_registered'], 'sort', $current_page, $_GET['sort']),
'type' => $GLOBALS['db']->column_sort('type', $lang['customer']['customer_type'], 'sort', $current_page, $_GET['sort']),
'email' => $GLOBALS['db']->column_sort('email', $lang['common']['email'], 'sort', $current_page, $_GET['sort']),
'no_orders' => $GLOBALS['db']->column_sort('order_count', $lang['customer']['order_count'], 'sort', $current_page, $_GET['sort']),
'language' => $GLOBALS['db']->column_sort('language', $lang['common']['language'], 'sort', $current_page, $_GET['sort'])
);
-
classes/cubecart.class.php My line: 2196
-
Thanks Al!
-
Here's mine. I coldn't have done this without Brian, Al and Ian. I've learned so much from them and they've had a LOT of patience with me. Check out my About Us page. I'd also like people's thoughts on my main checkout page
-
Thank you Brian ... All is working and I got my jpg back Yeah!!!
-
/00-CC-Version-6.5.5/Original/ that is where I put the original version of 6.5.5 on my computer. I also have one called "used for edits"
I reinstalled the images and the checkbox is back!!!!! Yeah thanks, Brian
Should I start a new topic for this:
Security Error: Content at https://www.cambargainstore.com/admin_VGwU48.php?_g=products&node=index&sort[updated]=DESC&action=edit&product_id=595 may not load or link to file:///C:/00-CC-Version-6.5.5/My%20Modified%20Files%20from%206.5.3/images/source/iron-sad-flat-no6-black-sc-3/08-antique-cast-iron-no-6-sad-flat-iron-black-schreiber-conchar-left-flat.webp.
I looked thru all the GitHubs trying to find where the code is to add the webp. I want to remove it. For the life of me I can't find it. Can you head me in the right direction please?
I really want my images back to jpeg
-
Could that image error be why Google is not indexing the webp images and my numbers have dropped. CC should have made webp an option - not automatically done it
This is what the tool shows. I blocked on personal stuff. I don't know why it isn't showing my custom admin instead of default. The image is there.
.custom-checkbox {
background: url('../../../00-CC-Version-6.5.5/Original/admin_xxxxxx/skins/default/images/0.png');
width: 16px;
height: 16px;
display: inline-block;
} -
It shows this warning and I just noticed (may have just started) it's not showing my thumbnails
Security Error: Content at https://www.cambargainstore.com/admin_VGwU48.php?_g=products&node=index&sort[updated]=DESC&action=edit&product_id=595 may not load or link to file:///C:/00-CC-Version-6.5.5/My%20Modified%20Files%20from%206.5.3/images/source/iron-sad-flat-no6-black-sc-3/08-antique-cast-iron-no-6-sad-flat-iron-black-schreiber-conchar-left-flat.webp.
I really want my images back to jpeg
And I was wrong - I forgot I had switched to the default admin skin. That's when I saw the boxes. When I switch to my custom skin , with or without the div, I don't see the boxes.
-
I had already checked the css
When I change the code to this the box shows up (add the div code) Is it ok to keep it like this?
<tr>
<td style="text-align:center"><input type="radio" name="primary_cat" class="check-primary" value="{$category.id}" rel="cat_{$category.id}"{$category.primary}></td>
<td style="text-align:center"><div class="custom-checkbox"><input type="checkbox" id="cat_{$category.id}" name="categories[{$category.id}]" value="{$category.id}" class="custom-checkbox.selected" {$category.selected}></td>
</div>
<td>{$category.name}</td>
</tr>
{/foreach}
</tbody> -
Ok just fooling around with a product listed in Listed on Etsy only and Kitchen gadgets. The place where the checkbox should be if you hover it shows a pointing finger. I did this on my collectibles category area and think clicked. The item is now also shown in that category. So the only thing missing is the checkbox.
-
javascript as well as custom-checkbox are correct
.custom-checkbox {
background: url(../images/0.png);
width: 16px;
height: 16px;
display: inline-block
}What now?
also this:
.custom-checkbox {
background: url(../images/0.png);
width: 16px;
height: 16px;
display: inline-block
}
fieldset .custom-checkbox {
line-height: 24px;
margin-top: 5px
}
.custom-checkbox.selected {
background: url(../images/1.png)
}I don't know if this means anything but if I change checkbox to radio I get a radio for each column and it works
php warning
in Technical Help
Posted
We had discussed line 2197 earlier. -- We did? You have a better memory than me LOL
I'll try the edit above