Community Forums

OpenCart 1.5.1.3 Bug Thread

Bug reports here

Re: OpenCart 1.5.1.3 Bug Thread

Postby JNeuhoff » Mon Jan 02, 2012 10:05 pm

You get a $(".fancybox").fancybox is not a function error in checkout step 4. Try it with the default template and see whether it comes up with the same error.
J.Neuhoff - MHC Web Design

OpenCart Override Engine (Version 5.3)
allowing addons to override and modify core methods, language files and templates (see also FAQ)
User avatar
JNeuhoff
 
Posts: 2129
Joined: Tue Dec 04, 2007 7:38 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby Helping » Mon Jan 02, 2012 11:35 pm

I did not change that, but I checked and it resulted in the same.
Helping
 
Posts: 5
Joined: Mon Jan 02, 2012 4:12 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby Helping » Tue Jan 03, 2012 2:20 pm

Helping
 
Posts: 5
Joined: Mon Jan 02, 2012 4:12 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby speedingorange » Tue Jan 03, 2012 2:56 pm

Something I spotted when installing the cart on the latest version Not sure if this is just my hosting through.

Was my database prefix was set to HANK745_ it created the database as seen in phpmyadmin as HANK745_ however it wrote the config.php as hank745_ and therefore the database could not be found. May just be a quirk of my hosting or something? Not sure if someone else could confirm the issue?

Cheers
James
speedingorange
 
Posts: 253
Joined: Tue Feb 23, 2010 11:33 am

Cache Bug --- Re: OpenCart 1.5.1.3 Bug Thread

Postby vickiowa » Tue Jan 03, 2012 3:38 pm

Hey Guys, thanks to Daniel and Q for the great work done on OC 1.5.1.3 so far :-)

I have patched my earlier OC 1.5.1.1 to OC 1.5.1.3 Fixed the small errors/bugs by reading the forums.

Getting the following 2 error message recurrently in the error log, these concern the file cache.php

2012-01-03 15:15:23 - PHP Warning: file_get_contents(/home/vsahita/public_html/sabsebest.com/system/cache/cache.store.1325607323) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /home/vsahita/public_html/sabsebest.com/system/library/cache.php on line 25

2012-01-03 15:15:23 - PHP Warning: unlink(/home/vsahita/public_html/sabsebest.com/system/cache/cache.store.1325607323) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /home/vsahita/public_html/sabsebest.com/system/library/cache.php on line 49

Solutions tried so far:

(1) As Daniel had advised, checked with my host and they have 'file_get_contents' enabled for my site and the server.

(2) Based on reading VillageDeFrance's earlier post, I edited cache.php and took out the below string from Line 15 and Line 51. Still the error keeps coming.

Code: Select all
clearstatcache();


Regardless, continue to get the 2 error messages.

The entire (unedited) cache.php is below for study and reference.

If anyone has a fix or knows how to resolve the error, please kindly post it here or email at vickiowa@gmail.com Thanks much, Vick

Code: Select all
<?php
final class Cache {
   private $expire = 3600;

     public function __construct() {
      $files = glob(DIR_CACHE . 'cache.*');
      
      if ($files) {
         foreach ($files as $file) {
            $time = substr(strrchr($file, '.'), 1);

               if ($time < time()) {
               if (file_exists($file)) {
                  unlink($file);
                  clearstatcache();
               }
               }
          }
      }
     }

   public function get($key) {
      $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*');

      if ($files) {
         $cache = file_get_contents($files[0]);
         
         return unserialize($cache);
      }
   }

     public function set($key, $value) {
       $this->delete($key);
      
      $file = DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.' . (time() + $this->expire);
       
      $handle = fopen($file, 'w');

       fwrite($handle, serialize($value));
      
       fclose($handle);
     }
   
     public function delete($key) {
      $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*');
      
      if ($files) {
          foreach ($files as $file) {
               if (file_exists($file)) {
               unlink($file);
               clearstatcache();
            }
          }
      }
     }
}
?>
vickiowa
 
Posts: 18
Joined: Mon Sep 26, 2011 10:16 pm

Products Page Styling Issue Re: OpenCart 1.5.1.3 Bug Thread

Postby paulnic777 » Tue Jan 03, 2012 7:18 pm

On the individual products pages there are a few lines that overlap and divs that are not quite in the right place. Using firefox 3.6.25 and IE8. Please see screenshot.

Using version 1.5.1.3.1
screenshot.png
screenshot.png (58.22 KiB) Viewed 1509 times
paulnic777
 
Posts: 89
Joined: Thu Jul 01, 2010 5:42 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby fido-x » Wed Jan 04, 2012 10:34 am

speedingorange wrote:Something I spotted when installing the cart on the latest version Not sure if this is just my hosting through.

Was my database prefix was set to HANK745_ it created the database as seen in phpmyadmin as HANK745_ however it wrote the config.php as hank745_ and therefore the database could not be found. May just be a quirk of my hosting or something? Not sure if someone else could confirm the issue?

Cheers
James

Confirmed.

Line 78 in "install/controller/step_3.php" reads:
Code: Select all
$output .= 'define(\'DB_PREFIX\', \'' . addslashes(strtolower($this->request->post['db_prefix'])) . '\');' . "\n"; 

Probably should be:
Code: Select all
$output .= 'define(\'DB_PREFIX\', \'' . addslashes($this->request->post['db_prefix']) . '\');' . "\n"; 
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: OpenCart 1.5.1.3 Bug Thread

Postby webbutvecklarna » Thu Jan 05, 2012 10:34 pm

Unable to install opencart when using ssl, couldn't go to next step the page just refreshed.
Didn't had time to investigate further, will set it up again if you cant repreduce the error.

Should be supported since you are suppling db and admin credentials during the installation
webbutvecklarna
 
Posts: 19
Joined: Thu Sep 08, 2011 8:11 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby Daniel » Fri Jan 06, 2012 2:22 pm

fido-x wrote:
speedingorange wrote:Something I spotted when installing the cart on the latest version Not sure if this is just my hosting through.

Was my database prefix was set to HANK745_ it created the database as seen in phpmyadmin as HANK745_ however it wrote the config.php as hank745_ and therefore the database could not be found. May just be a quirk of my hosting or something? Not sure if someone else could confirm the issue?

Cheers
James

Confirmed.

Line 78 in "install/controller/step_3.php" reads:
Code: Select all
$output .= 'define(\'DB_PREFIX\', \'' . addslashes(strtolower($this->request->post['db_prefix'])) . '\');' . "\n"; 

Probably should be:
Code: Select all
$output .= 'define(\'DB_PREFIX\', \'' . addslashes($this->request->post['db_prefix']) . '\');' . "\n"; 



thius will be fixed. i seem to remember some idiot telling me it should be lowercase other wise it s bug.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5184
Joined: Fri Nov 03, 2006 10:57 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby fido-x » Fri Jan 06, 2012 2:51 pm

fido-x wrote:Line 78 in "install/controller/step_3.php" reads:
Code: Select all
$output .= 'define(\'DB_PREFIX\', \'' . addslashes(strtolower($this->request->post['db_prefix'])) . '\');' . "\n";  

Probably should be:
Code: Select all
$output .= 'define(\'DB_PREFIX\', \'' . addslashes($this->request->post['db_prefix']) . '\');' . "\n";  

This also occurs on line 39 in the same file.

What is happening is the db prefix is being written to the database as entered and then converted to lower-case for the config files.

There are 2 ways this can be fixed. The first is as stated above by removing the "strtolower" when writing to the config files (probably the best method), or by converting the db prefix to lower-case before creating the tables in the database. In the model "install/model/install.php" (lines 23-25), change:
Code: Select all
$query = str_replace("DROP TABLE IF EXISTS `oc_", "DROP TABLE IF EXISTS `" . $data['db_prefix'], $query);
$query = str_replace("CREATE TABLE `oc_", "CREATE TABLE `" . $data['db_prefix'], $query);
$query = str_replace("INSERT INTO `oc_", "INSERT INTO `" . $data['db_prefix'], $query); 

to:
Code: Select all
$query = str_replace("DROP TABLE IF EXISTS `oc_", "DROP TABLE IF EXISTS `" . strtolower($data['db_prefix']), $query);
$query = str_replace("CREATE TABLE `oc_", "CREATE TABLE `" . strtolower($data['db_prefix']), $query);
$query = str_replace("INSERT INTO `oc_", "INSERT INTO `" . strtolower($data['db_prefix']), $query); 


So the fix is either, removing the "strtolower" from lines 39 and 78 in step 3 of the installer, or adding "strtolower" to the model. Your choice Daniel.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: OpenCart 1.5.1.3 Bug Thread

Postby chilledworld » Fri Jan 06, 2012 6:00 pm

With 23 pages of reported bugs it would be great to have a new version of Opencart with all the fixes as most of us are confused by the svn.
I have been using Opencart for 2 years now and I love it but another stable download like 1.4.9.6 would instill more confidence in us all.
chilledworld
 
Posts: 4
Joined: Sun Jan 30, 2011 8:29 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby arch72 » Fri Jan 06, 2012 10:52 pm

same here,

been using it for 18 months, really tired of all of this, just seek a stable platform to use, with this roller coaster ride with version updates svn's version updates etc.

This thing needs a stable updated release soon, a constant wait for version updates svn files is really time consuming, sometimes i think i am a web developer when it comes to updates and versions, bug fixes etc for opencart, love it great work, great team behind it but sometimes feel you guys have lost the plot, people love opensource carts, this one is way ahead of all the others, with the ebay connector and a module to connect to apple android apps this is going to be a quite a powerful tool just really need a stable bug free update free release soon?

please.have waited, read all the threads
arch72
 
Posts: 39
Joined: Fri Jul 30, 2010 11:00 pm

Re: OpenCart 1.5.1.3 Bug Thread

Postby jules_nz » Sat Jan 07, 2012 6:53 am

Hi

There is a spelling mistake in the Region/State under New Zealand
It has "Wairprarapa" but the correct spelling is "Wairarapa"

I couldnt find it in the files/database
Is this set offsite somewhere?

Cheers
Julie
jules_nz
 
Posts: 112
Joined: Tue Aug 11, 2009 4:58 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby fido-x » Sat Jan 07, 2012 9:59 am

jules_nz wrote:There is a spelling mistake in the Region/State under New Zealand
It has "Wairprarapa" but the correct spelling is "Wairarapa"

I couldnt find it in the files/database
Is this set offsite somewhere?

Look under "System->Localisation->Zones" in the admin.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Coupons are being used more than once!

Postby daggerman1 » Sat Jan 07, 2012 10:58 am

There is a big problem with the coupons on the site, even though it states they are only allowed to be used once it still allows it.... How can this be possible?

One customer has managed to use the voucher around 10 times?

I think its a bug of Opencart 1.5.1.3

Kind Regards,

Dan
daggerman1
 
Posts: 5
Joined: Sat Jan 07, 2012 10:53 am

Re: Coupons are being used more than once!

Postby rph » Sat Jan 07, 2012 12:14 pm

If you're talking about coupons (vouchers are a different thing entirely) you need to make sure you've set the limit for Uses Per Coupon and Uses Per Customer.
-Ryan
VQMod Manager: FREE extension to fully manage your VQMods from Admin!
Admin Enhancement Suite: Powerful Admin features and enhancements
Dependent Options: Option values displayed based on customer input
Catalog Mode: Disable "Add to Cart" and display your store in view-only
Unofficial OpenCart Wiki | Commercial Support and Development
User avatar
rph
 
Posts: 2830
Joined: Thu Jan 07, 2010 9:05 pm
Location: Lincoln, Nebraska

Re: OpenCart 1.5.1.3 Bug Thread

Postby daggerman1 » Sat Jan 07, 2012 12:49 pm

Hi,

Thanks for a quick reply.

I have set both of them values to 1 on all of them. For I have a funny feeling it's something to do with nothing being in the coupon history tab. Surely this should populate when someone orders with that coupon ?

Maybe that's why it's allowing it a number of times.

Dan
daggerman1
 
Posts: 5
Joined: Sat Jan 07, 2012 10:53 am

Re: Coupons are being used more than once!

Postby daggerman1 » Sat Jan 07, 2012 12:51 pm

rph wrote:If you're talking about coupons (vouchers are a different thing entirely) you need to make sure you've set the limit for Uses Per Coupon and Uses Per Customer.


See obove reply: sorry forgot to quote it
daggerman1
 
Posts: 5
Joined: Sat Jan 07, 2012 10:53 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby jules_nz » Sat Jan 07, 2012 6:34 pm

fido-x wrote:Look under "System->Localisation->Zones" in the admin.


Thanks for that, all fixed
jules_nz
 
Posts: 112
Joined: Tue Aug 11, 2009 4:58 am

Re: OpenCart 1.5.1.3 Bug Thread

Postby daggerman1 » Sun Jan 08, 2012 5:48 pm

Has anyone got any idea with this bug, because it seems like a major flaw?

Kind Regards,

Dan
daggerman1
 
Posts: 5
Joined: Sat Jan 07, 2012 10:53 am

PreviousNext

Return to Bug Reports

Who is online

Users browsing this forum: ichiro [Crawler] and 24 guests

Hosted by Arvixe Web Hosting