Search found 4577 matches

Search found 4577 matches

Re: Error when adding more than 2 images of product

Check the theme image size settings, maybe you have an extra character with the number. Also try the default theme.

Jump to post
  • Mon Mar 18, 2024 8:17 pm
  • Replies 4
  • Views 200
Re: If statement to stop fake registrations

The file would be catalog/controller/account/register.php. You would need to add to function validate. if ($this->request->post['firstname'] == substr($this->request->post['lastname'], 0, strlen($this->request->post['firstname'])) { $this->error['lastname'] = $this->language->get('error_lastname'); ...

Jump to post
  • Mon Mar 18, 2024 5:51 pm
  • Replies 4
  • Views 204
Re: OC 3.0.3.8 Maintenance Branch - PHP Warning: preg_replace(): Passing null to parameter #3 ($subject) in action.ph

You won't have a catalog/controller/extension/payment/pp_express.php file anymore as PayPal Express isn't included in 3.0.3.9.

You will probably need to change your PayPal IPN settings if you are not using PayPal Express anymore.

Jump to post
  • Fri Mar 15, 2024 6:19 pm
  • Replies 18
  • Views 5388
Re: Login display prices feature leak

You will probably need to raise another issue on GitHub and wait for the next version or get a developer to fix it for you.

Jump to post
  • Fri Mar 15, 2024 3:05 am
  • Replies 7
  • Views 556
Re: OC 3.0.3.8 Maintenance Branch - PHP Warning: preg_replace(): Passing null to parameter #3 ($subject) in action.ph

The fix for the next version is https://github.com/opencart/opencart/pull/13019, but either will work.

To track down the actual cause of the error I would look at timestamp of the error in the error log and look at your web access logs for that exact time.

Jump to post
  • Fri Mar 15, 2024 1:17 am
  • Replies 18
  • Views 5388
Re: CDN setup

DIR_IMAGE is for a local directory not a remote URL. OpenCart doesn't really support CDN since about version 1.5.4. After which HTTP_IMAGE was removed form the config.php.

Have a look in catalog/model/tool/image.php where most but not all image URLs are generated.

Jump to post
  • Thu Mar 14, 2024 9:05 pm
  • Replies 6
  • Views 295
Re: error vqmod

Do any of your vQmods modify vendor/autoload.php in you storage directory?

Jump to post
  • Wed Mar 13, 2024 11:02 pm
  • Replies 3
  • Views 274
Re: Email message BLANK on yahoo and hotmail, subject is fine.

Are you using Mail or SMTP in your mail settings? What version of PHP are you using?

Jump to post
  • Wed Mar 13, 2024 10:53 pm
  • Replies 1
  • Views 420
Re: logout cache issue...I believe

It doesn't eliminate all caching, just the pages generated by PHP. All images and style sheets will still be cached.

You could add the headers into htaccess, but you would need to only do this to the PHP generated responses.

Jump to post
  • Wed Mar 13, 2024 5:41 pm
  • Replies 7
  • Views 295
Re: preload question

It looks from that screenshot that it is being added to the preload queue, but you have a lot of blocking stylesheets and something else delaying it.

Jump to post
  • Wed Mar 13, 2024 5:04 am
  • Replies 7
  • Views 385
Re: Enable SEO URL's (on local installation)

The version of PHP is unlikely to be an issue unless you are seeing errors in your PHP and OpenCart error logs.

Jump to post
  • Tue Mar 12, 2024 8:23 pm
  • Replies 13
  • Views 1016
Re: OC 1.5.6.4 CSRF problem, please help

As long as you are not setting SaneSite to None in you PHP settings, modem web browsers should protect against that sort of attack.

Jump to post
  • Tue Mar 12, 2024 6:01 pm
  • Replies 9
  • Views 575
Re: OC 1.5.6.4 CSRF problem, please help

Making sure the the PHP session cookie to SameSite=Lax would stop that.

Otherwise you can add a token to the forms.
https://github.com/opencart-ce/opencart ... 75132d168a

Jump to post
  • Tue Mar 12, 2024 1:00 am
  • Replies 9
  • Views 575
Re: preload question

Have a look at the examples at https://web.dev/articles/preload-responsive-images.

Your preload image could be loading first but finishing after the script.

Jump to post
  • Tue Mar 12, 2024 12:50 am
  • Replies 7
  • Views 385
Re: logout cache issue...I believe

OpenCart 3.0.3.9 does not set cache control headers so 'ExpiresDefault "access plus 2 days"' will cause your web browser to cache all sort or responses it shouldn't. This has been fixed in the hopefully soon to be released next 3.0.x.x version on GitHub. the fix is https://github.com/openc...

Jump to post
  • Tue Mar 12, 2024 12:22 am
  • Replies 7
  • Views 295
Re: Data session issues

If your API is on a different domain then strict will prevent the cookie being sent to the other domain. Hence why you get logged out.

If you are going to redirect to different domains you need to use Lax.

Jump to post
  • Tue Mar 12, 2024 12:15 am
  • Replies 8
  • Views 902
Re: Fatal error: Class 'Controllercommonheader' not found

It would be helpful to post your OpenCart version. Check for missing of modified admin\controller\common\header.php.

Jump to post
  • Fri Mar 08, 2024 8:09 am
  • Replies 1
  • Views 407
Re: Fatal PHP Error Detected - index.php?route=checkout/register/save

Hmm, well I thought I had it correct: Mail Engine: SMPT Mail Parameters: (none) SMTP Hostname: ssl://mail.xyz.com SMTP Username: username SMTP Password: password SMTP Port: 465 SMTP Timeout: 5 I haven't seen that error reappear on Lightning mind you, so perhaps it was a bad communication to my ssl ...

Jump to post
  • Fri Mar 08, 2024 1:39 am
  • Replies 8
  • Views 354
Re: Data session issues

Check the cookies in your web browser developer tool. You may find you have multiple cookies for different subdomains or directories.

Jump to post
  • Tue Mar 05, 2024 8:00 pm
  • Replies 8
  • Views 902

Search found 4577 matches