Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

If you have 1064 in admin.


Wendy James

Recommended Posts

I noticed a bunch of posts about 1064 so I thought I would put this up here even though the answer has been posted before, there have been so many posts about it that the answer seems to have been burried pages back.

 

Open

admin/includes/classes/split_page_result.php in admin/includes/classes

 

Look for

	  $offset = ($max_rows_per_page * ($current_page_number - 1));
  $sql_query .= " limit " . $offset . ", " . $max_rows_per_page;

 

and change it to

	 $offset = ($max_rows_per_page * ($current_page_number - 1));
 if ($offset < 0) {$offset = 0;}
 $sql_query .= " limit " . $offset . ", " . $max_rows_per_page;

 

That solves the issue of the 1064 if it is the limit -20, 20

Not sure if there is other #s involved in the error.

 

Hope that helps all the people posting about 1064 lately :)

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...