Post by Timoathp » Sun Feb 25, 2018 9:59 pm

Dear reader,
I found out when I click on login or register at the checkout page that it crashes. I don't know how to fix that, Can somebody help me?
This is the link to the website: https://www.momsstuff.nl/

I hope to hear from anybody soon.

Kind of regards,
Timo
Last edited by Timoathp on Sat Mar 03, 2018 12:18 am, edited 1 time in total.

Newbie

Posts

Joined
Wed Feb 08, 2017 12:13 am
Location - Netherlands

Post by straightlight » Sun Feb 25, 2018 10:47 pm

No OC version posted. The theme is really screwed up. Use a website analyzer to scan for your theme's content. No products can be seen from the top either.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Timoathp » Fri Mar 02, 2018 8:34 pm

Can you look again for me please? I fix the theme.

Version: 3.2.0

Newbie

Posts

Joined
Wed Feb 08, 2017 12:13 am
Location - Netherlands

Post by pprmkr » Fri Mar 02, 2018 9:12 pm

Website is in Maintenance mode ? Switch it off in order to make the content visible.
After that we will be able to check ...

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Timoathp » Fri Mar 02, 2018 9:16 pm

Sorry! I forgot to turn off! Now its turn off

Newbie

Posts

Joined
Wed Feb 08, 2017 12:13 am
Location - Netherlands

Post by pprmkr » Fri Mar 02, 2018 9:34 pm

Checkout : after click "Verder" system goes to checkout/register.
It holds on loading register.twig after checking Custom fields for customer group.
Did you alter register.twig or checkout/register.php ?
Try default template.

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Timoathp » Fri Mar 02, 2018 9:42 pm

Hi,

No I did not edit the register page, only the CSS but that was in I think september 2017, at that moment it works. The problem is that this is the dafault theme..

Newbie

Posts

Joined
Wed Feb 08, 2017 12:13 am
Location - Netherlands

Post by pprmkr » Fri Mar 02, 2018 9:48 pm

Did you turn on "Log Errors" in System - Settings ?
What does error.log show ?

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Timoathp » Fri Mar 02, 2018 9:56 pm

This are the last errors:

2018-02-20 13:11:35 - PHP Warning: unlink(/home/jacqufh146/domains/momsstuff.nl/storage/cache/cache.catalog.language.1519131451): No such file or directory in /home/jacqufh146/domains/momsstuff.nl/public_html/system/library/cache/file.php on line 17
2018-02-20 13:11:35 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jacqufh146/domains/momsstuff.nl/public_html/system/framework.php:42) in /home/jacqufh146/domains/momsstuff.nl/public_html/catalog/controller/startup/session.php on line 25
2018-02-20 13:11:35 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jacqufh146/domains/momsstuff.nl/public_html/system/framework.php:42) in /home/jacqufh146/domains/momsstuff.nl/public_html/catalog/controller/startup/startup.php on line 99
2018-02-20 13:11:35 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jacqufh146/domains/momsstuff.nl/public_html/system/framework.php:42) in /home/jacqufh146/domains/momsstuff.nl/public_html/catalog/controller/startup/startup.php on line 157
2018-02-20 18:15:06 - PHP Warning: unlink(/home/jacqufh146/domains/momsstuff.nl/storage/cache/cache.catalog.language.1519154106): No such file or directory in /home/jacqufh146/domains/momsstuff.nl/public_html/system/library/cache/file.php on line 68
2018-02-26 19:17:57 - PHP Warning: unlink(/home/jacqufh146/domains/momsstuff.nl/storage/cache/cache.catalog.language.1519676277): No such file or directory in /home/jacqufh146/domains/momsstuff.nl/public_html/system/library/cache/file.php on line 68

Newbie

Posts

Joined
Wed Feb 08, 2017 12:13 am
Location - Netherlands

Post by pprmkr » Fri Mar 02, 2018 10:02 pm

OK.
Also noticed missing javascript on checkout page: TypeError: $(...).datetimepicker is not a function

Scripts should be loaded by controller/checkout/checkout.php, starting at line 30:

Code: Select all

		$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment.min.js');
		$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js');
		$this->document->addScript('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js');
		$this->document->addStyle('catalog/view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css');

		// Required by klarna
		if ($this->config->get('payment_klarna_account') || $this->config->get('payment_klarna_invoice')) {
			$this->document->addScript('http://cdn.klarna.com/public/kitt/toc/v1.0/js/klarna.terms.min.js');
		}
Check controller/checkout/checkout.php if those lines ( still ) exist.

Other scripts might stop working because of js-error ...

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by pprmkr » Fri Mar 02, 2018 10:05 pm

If those lines still exist, check catalog/view/theme/default/template/common/header.twig
Before :

Code: Select all

<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
Search for:

Code: Select all

{% for script in scripts %}
<script src="{{ script }}" type="text/javascript"></script>
{% endfor %}

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Timoathp » Fri Mar 02, 2018 10:12 pm

I have send you a private message,

Newbie

Posts

Joined
Wed Feb 08, 2017 12:13 am
Location - Netherlands

Post by pprmkr » Fri Mar 02, 2018 10:42 pm

Missing lines in header.twig !
Added back in:

Code: Select all

{% for style in styles %}
<link href="{{ style.href }}" type="text/css" rel="{{ style.rel }}" media="{{ style.media }}" />
{% endfor %}
{% for script in scripts %}
<script src="{{ script }}" type="text/javascript"></script>
{% endfor %}

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 343 guests