Post by straightlight » Sun Jun 05, 2016 7:01 am

In Opencart v2.2.0.0, there are some invalid URLs sent from Ajax request.

in admin/view/template/customer/customer_form.tpl file,

find:

Code: Select all

url: 'index.php?route=customer/customer/addhistory
replace with:

Code: Select all

url: 'index.php?route=customer/customer/addHistory
Then, find:

Code: Select all

url: 'index.php?route=customer/customer/addtransaction
replace with:

Code: Select all

url: 'index.php?route=customer/customer/addTransaction
Then, find:

Code: Select all

route=customer/customer/addreward
replace with:

Code: Select all

route=customer/customer/addReward
These modifications should resolved the problem.

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 straightlight » Sun Jun 05, 2016 9:24 pm

In admin/view/template/feed/google_base.tpl file,

find:

Code: Select all

url: 'index.php?route=feed/google_base/addcategory&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=feed/google_base/addCategory&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=feed/google_base/removecategory&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=feed/google_base/removeCategory&token=<?php echo $token; ?>',

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 straightlight » Sun Jun 05, 2016 9:26 pm

In admin/view/template/fraud/ip.tpl file,

find:

Code: Select all

url: 'index.php?route=fraud/ip/addip&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=fraud/ip/addIp&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=fraud/ip/removeip&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=fraud/ip/removeIp&token=<?php echo $token; ?>',

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 straightlight » Sun Jun 05, 2016 9:29 pm

In admin/view/template/marketing/affiliate_form.tpl file,

find:

Code: Select all

url: 'index.php?route=marketing/affiliate/addtransaction&token=<?php echo $token; ?>&affiliate_id=<?php echo $affiliate_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=marketing/affiliate/addTransaction&token=<?php echo $token; ?>&affiliate_id=<?php echo $affiliate_id; ?>',

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 straightlight » Sun Jun 05, 2016 9:30 pm

In admin/view/template/openbay/amazonus_bulk_list.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/amazonus/dobulksearch&token=<?php echo $token ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/amazonus/doBulkSearch&token=<?php echo $token ?>',

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 straightlight » Sun Jun 05, 2016 9:51 pm

In admin/view/template/openbay/ebay_settings.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/ebay/verifycredentials&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/ebay/verifyCredentials&token=<?php echo $token; ?>',
In admin/view/template/openbay/ebay_synchronise.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/ebay/updatecategories&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/ebay/updateCategories&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/ebay/updatesettings&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/ebay/updateSettings&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/ebay/updatestore&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/ebay/updateStore&token=<?php echo $token; ?>',
In admin/view/template/openbay/ebay_usage.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/ebay/getusage&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/ebay/getUsage&token=<?php echo $token; ?>',
In admin/view/template/openbay/etsy_create.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/etsy_product/createsubmit&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_product/createSubmit&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/etsy_product/addimage&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_product/addImage&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/etsy_shipping/getall&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_shipping/getAll&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/etsy_shop/getsections&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_shop/getSections&token=<?php echo $token; ?>',
In admin/view/template/openbay/etsy_edit.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/etsy_product/editsubmit&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_product/editSubmit&token=<?php echo $token; ?>',
In admin/view/template/openbay/etsy_listings.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/etsy_product/endlisting&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_product/endListing&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/etsy_product/deactivatelisting&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_product/deactivateListing&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/etsy_product/activatelisting&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy_product/activateListing&token=<?php echo $token; ?>',
In admin/view/template/openbay/etsy_settings.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/etsy/getorders&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy/getOrders&token=<?php echo $token; ?>',
Then, find:

Code: Select all

url: 'index.php?route=openbay/etsy/settingsupdate&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/etsy/settingsUpdate&token=<?php echo $token; ?>',
In admin/view/template/openbay/fba_settings.tpl file,

find:

Code: Select all

url: 'index.php?route=openbay/fba/verifycredentials&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=openbay/fba/verifyCredentials&token=<?php echo $token; ?>',
In admin/view/template/openbay/openbay_manage.tpl file,

find:

Code: Select all

url: 'index.php?route=extension/openbay/faqclear&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=extension/openbay/faqClear&token=<?php echo $token; ?>',
Then, find all instances of:

Code: Select all

url: 'index.php?route=extension/openbay/updatev2
replace them all with:

Code: Select all

url: 'index.php?route=extension/openbay/updateV2

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 straightlight » Sun Jun 05, 2016 9:59 pm

In admin/view/template/payment/pp_payflow_iframe_refund.tpl file,

find:

Code: Select all

url: 'index.php?route=payment/pp_payflow_iframe/dorefund&token=<?php echo $token; ?>',
replace with:

Code: Select all

url: 'index.php?route=payment/pp_payflow_iframe/doRefund&token=<?php echo $token; ?>',

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 straightlight » Sun Jun 05, 2016 10:08 pm

There were some reports regarding issues on adding an IP address to the order form.

In admin/view/template/sale/order_form.tpl file,

find:

Code: Select all

url: 'index.php?route=user/api/addip&token=<?php echo $token; ?>&api_id=<?php echo $api_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=user/api/addIp&token=<?php echo $token; ?>&api_id=<?php echo $api_id; ?>',
In admin/view/template/sale/order_list.tpl file,

find:

Code: Select all

url: 'index.php?route=user/api/addip&token=<?php echo $token; ?>&api_id=<?php echo $api_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=user/api/addIp&token=<?php echo $token; ?>&api_id=<?php echo $api_id; ?>',
In admin/view/template/sale/order_info.tpl file,

find:

Code: Select all

url: 'index.php?route=sale/order/createinvoiceno&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=sale/order/createInvoiceNo&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
Then, find:

Code: Select all

url: 'index.php?route=sale/order/addreward&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=sale/order/addReward&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
Then, find:

Code: Select all

url: 'index.php?route=sale/order/removereward&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=sale/order/removeReward&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
Then, find:

Code: Select all

url: 'index.php?route=sale/order/addcommission&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=sale/order/addCommission&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
Then, find:

Code: Select all

url: 'index.php?route=sale/order/removecommission&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=sale/order/removeCommission&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>',
Then, find:

Code: Select all

url: 'index.php?route=extension/openbay/getorderinfo&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>&status_id=' + status_id,
replace with:

Code: Select all

url: 'index.php?route=extension/openbay/getOrderInfo&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>&status_id=' + status_id,
Then, find:

Code: Select all

url: 'index.php?route=extension/openbay/addorderinfo&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>&status_id=' + status_id,
replace with:

Code: Select all

url: 'index.php?route=extension/openbay/addOrderInfo&token=<?php echo $token; ?>&order_id=<?php echo $order_id; ?>&status_id=' + status_id,
In admin/view/template/sale/order_list.tpl file,

find:

Code: Select all

url: 'index.php?route=user/api/addip&token=<?php echo $token; ?>&api_id=<?php echo $api_id; ?>',
replace with:

Code: Select all

url: 'index.php?route=user/api/addIp&token=<?php echo $token; ?>&api_id=<?php echo $api_id; ?>',

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 straightlight » Sun Jun 05, 2016 10:12 pm

In admin/view/template/user/api_form.tpl file,

find:

Code: Select all

url: 'index.php?route=user/api/deletesession&token=<?php echo $token; ?>&api_session_id=' + $(node).val(),
replace with:

Code: Select all

url: 'index.php?route=user/api/deleteSession&token=<?php echo $token; ?>&api_session_id=' + $(node).val(),

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 straightlight » Sun Jun 05, 2016 10:13 pm

In catalog/view/theme/default/template/payment/amazon_login_pay_address.tpl file,

find:

Code: Select all

url: 'index.php?route=payment/amazon_login_pay/setshipping',
replace with:

Code: Select all

url: 'index.php?route=payment/amazon_login_pay/setShipping',

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 i2Paq » Sun Jun 05, 2016 11:27 pm

What happens if not replaced?

Did you create and issue on GitHub about this?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by straightlight » Mon Jun 06, 2016 12:33 am

If those URLs are not being replaced and especially on IIS servers, a trowed exception error message will be returned on screen. Merchants and customers will not be able to proceed after these demarcations due to unmatched method names.

As we notice, most of the URLs also follows the exact method names as hard-coded down from the controllers. This topic reports all those that haven't been followed accordingly which causes error messages.

As for Github, this forum also involves Bug Reports which is also supposed to be considered as equal as other websites since opencart.com is the official domain name where errors can be reported.

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
Who is online

Users browsing this forum: No registered users and 4 guests