Post by share322 » Tue Jan 09, 2018 3:02 pm

Hey, I have an issue with product pages that return a blank/white page. BUT front page of the website works fine.

I am using Open Cart 3.0.2.0
Site URL: http://mmbleather.com

For example:
This doesn't work (Product Page)
Product Page URL: http://mmbleather.com/index.php?route=p ... uct_id=170

Error_log:
[06-Oct-2017 22:13:33 UTC] PHP Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unknown "endif" tag in "so-revo/template/product/product.twig" at line 322.' in /home/mmbleath/public_html/system/library/template/Twig/Parser.php:178
Stack trace:
#0 /home/mmbleath/public_html/system/library/template/Twig/Parser.php(100): Twig_Parser->subparse(NULL, false)
#1 /home/mmbleath/public_html/system/library/template/Twig/Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream))
#2 /home/mmbleath/public_html/system/library/template/Twig/Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream))
#3 /home/mmbleath/public_html/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('{{ header }}\n\n<...', 'so-revo/templat...')
#4 /home/mmbleath/public_html/storage/modification/system/library/template/twig.php(42): Twig_Environment->loadTemplate('so-revo/templat...')
#5 /home/mmbleath/public_html/system/library/template.php(51): Template\Twig->render('so-revo/templat...', '1')
#6 /home/mmbleath/public_h in /home/mmbleath/public_html/system/library/template/Twig/Parser.php on line 178
Here is the coding of "so-revo/template/product/product.twig" at line 322
#319 {% endfor %}
#320 {% endif %}
#321
#322 {% endif %}
#323
#324 <div class="form-group box-info-product">
#325 <div class="option quantity">
#326 <div class="input-group quantity-control">
#327 <input class="form-control" type="text" name="quantity" value="{{ minimum }}" />
#328 <input type="hidden" name="product_id" value="{{ product_id }}" />
#329 <span class="input-group-addon product_quantity_down fa fa-caret-down"></span>
#330 <span class="input-group-addon product_quantity_up fa fa-caret-up"></span>
#331 </div>
#332 </div>
php.ini:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 128M;
max_execution_time = 36000;
max_input_vars=25000
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.auto_start = Off;
session.use_only_cookies = On;
session.use_cookies = On;
session.use_trans_sid = Off;
session.cookie_httponly = On;
session.gc_maxlifetime = 3600;
allow_url_fopen = on;
;display_errors = 1;
;error_reporting = E_ALL;
Please tell me the solution of this problem.
Thanks

Newbie

Posts

Joined
Tue Jan 09, 2018 2:35 pm

Post by straightlight » Wed Jan 10, 2018 7:21 am

Probably using a custom theme. Simply remove this {% endif %} from your indicated line error noticing if this will resolved the issue. If not, try the TWIG debugger: https://www.opencart.com/index.php?rout ... n_id=31419

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 share322 » Wed Jan 10, 2018 11:45 pm

straightlight wrote:
Wed Jan 10, 2018 7:21 am
Probably using a custom theme. Simply remove this {% endif %} from your indicated line error noticing if this will resolved the issue. If not, try the TWIG debugger: https://www.opencart.com/index.php?rout ... n_id=31419
@straightlight Sir i tried both method "remove {% endif %}" and "Install TWIG debugger" BUT it doesn't work.

What should i do now? Please Help Me!

I have also sent you a private message of my website admin information. Please check!

Thanks
Nouman Bashir

Newbie

Posts

Joined
Tue Jan 09, 2018 2:35 pm

Post by straightlight » Thu Jan 11, 2018 7:14 am

@straightlight Sir i tried both method "remove {% endif %}" and "Install TWIG debugger" BUT it doesn't work.
Incomplete information.

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 share322 » Mon Jan 15, 2018 12:05 am

straightlight wrote:
Thu Jan 11, 2018 7:14 am
@straightlight Sir i tried both method "remove {% endif %}" and "Install TWIG debugger" BUT it doesn't work.
Incomplete information.
I have sent you the information in Private Message. Please Check Now!

Newbie

Posts

Joined
Tue Jan 09, 2018 2:35 pm
Who is online

Users browsing this forum: No registered users and 82 guests