Jump to content

Recommended Posts

Posted

i am using 6.4.7 and kurouto. my web hosting service updated the hosting platform and now my view all button wont work on kurouto, mauris, mican. when i push view all it just gives me a blank page with the number 1... is there a way to fix this back?

Posted

This is the Github issue #3133. However, the solution might not be suitable for this store.

I will work on getting the Kurouto skin template 'element.paginate.php' to work with "page=all".

Posted
[<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/wholesale-knives.html?page=all
Today, 12:53 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/wholesale-knives.html?page=all
Today, 12:51 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/united-cutlery-brand-knives.html?page=all
Today, 12:45 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/throwing-stars.html?page=all
Today, 12:45 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/throwing-stars.html?page=all
Today, 12:45 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/throwing-knives.html?page=all
Today, 12:44 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/throwing-knives-and-stars/single-throwing-stars.html?page=all
Today, 12:44 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/throwing-knives-and-stars/single-throwing-stars.html?page=all
Today, 12:43 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/tarantula.html?page=all
Today, 12:43 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/tarantula.html?page=all
Today, 12:43 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/9-inch.html?page=all
Today, 12:42 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/survival-knives.html?page=all
Today, 12:41 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/knives/automatic-knives/stilettos.html?page=all
Today, 12:40 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/small-pocket-knives.html?page=all
Today, 12:40 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/small-pocket-knives.html?page=all
Today, 12:36 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/self-defense-weapons/stun-guns.html?page=all
Today, 12:36 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/self-defense-weapons/stun-guns.html?page=all
Today, 12:35 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/self-defense-weapons.html?page=all
Today, 12:35 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/self-defense-weapons.html?page=all
Today, 12:34 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/self-defense-supplies/survivalist-books.html?page=all
Today, 12:34 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/self-defense-supplies/survivalist-books.html?page=all
Today, 12:34 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/self-defense-supplies/neck-knives.html?page=all
Today, 12:33 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/self-defense-supplies/miscellaneous.html?page=all
Today, 12:33 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d7ba04a03809e1eac728fd15ba93b14551445a0a_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://directknifesales.com/self-defense-supplies/miscellaneous.html?page=all
Today, 12:32 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/d87e5988b941bf4d7a38686cd777cb77598455ce_0.file.element.paginate.php.php:42 - Unsupported operand types: string - int
https://www.directknifesales.com/out-the-front-knives/double-action.html?page=all

it works on my other site at 100's Best Automatic Knives Of 2023 - Wholesale Self Defense

Posted

As for the other site, I cannot tell what version of CubeCart, nor what version of PHP that site is running.

Please make these edits to the element.paginate.php file:

At the end of the file, find:

    <strong>[{$LANG.common.view_all}]</strong>
  {/if}
{/if}

ABOVE that, add:

    {$page = 1}
    {for $i = 1; $i <= $total; $i++}
      {if ($i < $page - floor($show / 2))}
        {continue}
      {/if}

      {if ($i > $page + floor($show / 2))}
        {break}
      {/if}

      {$params[$var_name] = $i}
      <a href="{$current}{http_build_query($params)}{$anchor}">{$i}</a>
    {/for}

Near line 39, find:

{if ($view_all)}

ABOVE that, add:

{/if}

At the very beginning of the file, add this line:

{if ctype_digit((string)$page)}

Save and test.

 

Posted

wow that worked. thanks bsmithers. i looked at the coding on my other site and its the same. why would i have to add to this coding and not the other site. the other site is running update 6.5.5 with php 8.1. and looks to have the same coding and works fine.

Posted

There have been fixes to the Pagination routine (in the Database class) since CC6410. Note that on the 'wholesale' store, there is no pagination when "page=all".

 

Posted (edited)

100's Best Automatic Knives Of 2023 - Wholesale Self Defense shows pagination with foundation skin at the bottom there are pages 1 and 2 with ?page=all   with the other site in foundation skin it is messed up directknifesales.com/automatic-knives.html?page=all       am i not understanding pagination? if i update the direct knife site will it fix it?

 

Today, 12:55 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/eb1ab75e6dc96d9c9b14e0854cd6150afe5c547c_0.file.element.paginate.php.php:43 - Unsupported operand types: string - int
https://www.directknifesales.com/machetes.html?page=all
Today, 12:55 [<strong>Exception</strong>] /home3/slic535/public_html/cache/skin/eb1ab75e6dc96d9c9b14e0854cd6150afe5c547c_0.file.element.paginate.php.php:43 - Unsupported operand types: string - int
https://www.directknifesales.com/machetes.html?page=all
Edited by slic535
Posted (edited)

i tried using the above fix for the foundation skin but it didnt work? is there a different fix for the foundation skin? it worked with the non responsive skins. i keep getting the errors in the error log. when i tried to edit the foundation skin with the above fix i get this error

 

[<strong>Exception</strong>] /home3/slic535/public_html/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:70 - Syntax error in template "file:/home3/slic535/public_html/skins/foundation/templates/element.paginate.php" on line 70 "</ul>" unclosed {if} tag
https://www.directknifesales.com/automatic-knives.html

 

 

[<strong>Deprecated</strong>] /home3/slic535/public_html/includes/lib/smarty/plugins/modifier.capitalize.php:34 - preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated
https://www.directknifesales.com/index.php?_a=register

 

[<strong>Deprecated</strong>] /home3/slic535/public_html/includes/lib/smarty/plugins/modifier.capitalize.php:43 - preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated
https://www.directknifesales.com/index.php?_a=register

 

i am also getting these errors in the log

Edited by slic535
Posted

I don't see pagination on the Wholesale site. Regardless, as explained earlier, when CubeCart 6.5.x, using Foundation, sees "page=all", it will still paginate but will use the skin's largest perpage value (which can have custom values).

Do not try to "fix" pagination on Foundation.

The Direct site is malfunctioning again.

Posted

The 'Deprecated' errors are most likely someone trying to register (probably with javascript turned off), not filling in either of First Name or Last Name, CubeCart checking for these form entries and finding one or both missing, bouncing the visitor back to the Register page with the First Name and Last Name pre-filled - if those values exist - and Smarty triggering a Deprecation notice because the "capitalize" modifier is not tolerating null values.

 

Posted

thank you bsmither for giving me a little more understanding. i may just have to update the site to make everything correct again. not sure what the updated hosting did to the scripts.

Posted

i have tried to update the site manualy but when i do it erases my pictures and store settings. is there a way around that. i have had to have the hosting company do a backup so i can try another update.

Posted

Please describe "update manually".

Does this mean you FTP all the files from a folder on your workstation to your site, allowing the FTP program to overwrite the existing version with the new version of each file? If so, then files that do not exist in the group of files being uploaded are not overwritten, and should remain untouched.

UNLESS your FTP program is set to "synchronize" the destination to match the source - meaning, if the source does not have a file, the destination must also not have this file.

Then there is the matter of running the update script - which updates the database, not the core files. CubeCart determines if an "update" (to the database) can be performed, or if a "fresh install" (a blank database) is to be performed. The determination is based on the presence of an existing file and the contents of that file. If that file (/includes/global.inc.php) is not present, an update is not offered.

 

Posted

yes i updated the files from my folders that i saved on my computer and i use the ftp to manualy tranfer them. i have noticed when i update, sometimes it will hit a file and ask me if i want to overite it and that it already has the file. should i choose not to overwright the file? i will try it again and see before i goto setup and update if the global.inc.php is there before i do it. should the global.inc.php be in the new updated folders?

Posted

just an update for anyone having this issue. i had upgraded my php version from 7.4 to 8.2. when i did it gave me the errors. i had my hosting company revert me back to 7.4 and it fixed the problem. although when i upgrade the site to the newest version it still erases the pictures and clears the store settings. it says next to php 7.4 deprecation warning. if i upgrade this to 6.5.6 and upgrade to 8.2 would i still get the warning or errors?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...