[Skip to main content](#vessel-content)

#   Can't add new payment option

##

- **[EMAS](/forum/user/35079-emas "View EMAS's Profile")**
- [![EMAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35079-emas "View EMAS's Profile") Topic Author
- [ Offline](/forum/user/35079-emas)

Less More

- Posts: 5
- Thank you received: 0
-

10 months 4 weeks ago [\#369721](#369721) by [EMAS](/forum/user/35079-emas "View EMAS's Profile")  *[Can't add new payment option](/forum/25-install-update/909968-cant-add-new-payment-option#369721 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- Error-message(debug-mod must be tuned on) -- : Compile Error: Array and string offset access syntax with curly braces is no longer supported  Hello,  I recently got the warning message &quot;Your PayPal payment method is obsolete and will soon be discontinued by PayPal. Please go in the System&gt;Payment methods menu, click on the 'new' button and select the 'HikaShop PayPal Checkout payment plugin' to configure the PayPal Checkout payment method which is now replacing it. Once done and the new PayPal Checkout payment method is available on your website, disable the old PayPal payment method and this error message will disappear.&quot; I tried following these guidelines, but got a Joomla error page. I updated HikaShop to the latest version, but the problem persisted. After switching on debugging, I saw that it's a PHP error:  Compile Error: Array and string offset access syntax with curly braces is no longer supported  The code is:  public static function getScriptNameFromUrl ( $url ) { $path = parse&#95;url($url, PHP&#95;URL&#95;PATH); $len = strlen($path); if ( $len == 0 || '/' == $path{$len-1} ) { return &quot;&quot;; } return basename($path); }  coming form /homepages/3/d522575378/htdocs/joomla-2014-04-07/plugins/hikashoppayment/platron/PG&#95;Signature.php:17")* was created by *[EMAS](/forum/user/35079-emas "View EMAS's Profile")*

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.0
-- Error-message(debug-mod must be tuned on) -- : Compile Error: Array and string offset access syntax with curly braces is no longer supported

Hello,

I recently got the warning message "Your PayPal payment method is obsolete and will soon be discontinued by PayPal. Please go in the System&gt;Payment methods menu, click on the 'new' button and select the 'HikaShop PayPal Checkout payment plugin' to configure the PayPal Checkout payment method which is now replacing it. Once done and the new PayPal Checkout payment method is available on your website, disable the old PayPal payment method and this error message will disappear."
I tried following these guidelines, but got a Joomla error page. I updated HikaShop to the latest version, but the problem persisted. After switching on debugging, I saw that it's a PHP error:

Compile Error: Array and string offset access syntax with curly braces is no longer supported

The code is:

public static function getScriptNameFromUrl ( $url )
{
$path = parse_url($url, PHP_URL_PATH);
$len = strlen($path);
if ( $len == 0 &#124;&#124; '/' == $path{$len-1} ) {
return "";
}
return basename($path);
}

coming form /homepages/3/d522575378/htdocs/joomla-2014-04-07/plugins/hikashoppayment/platron/PG_Signature.php:17

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwOTk2OC1jYW50LWFkZC1uZXctcGF5bWVudC1vcHRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[EMAS](/forum/user/35079-emas "View EMAS's Profile")**
- [![EMAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35079-emas "View EMAS's Profile") Topic Author
- [ Offline](/forum/user/35079-emas)

Less More

- Posts: 5
- Thank you received: 0
-

10 months 4 weeks ago [\#369722](#369722) by [EMAS](/forum/user/35079-emas "View EMAS's Profile")  Replied by *[EMAS](/forum/user/35079-emas "View EMAS's Profile")* on topic *[Can't add new payment option](/forum/25-install-update/909968-cant-add-new-payment-option#369722 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- Error-message(debug-mod must be tuned on) -- : Compile Error: Array and string offset access syntax with curly braces is no longer supported  Hello,  I recently got the warning message &quot;Your PayPal payment method is obsolete and will soon be discontinued by PayPal. Please go in the System&gt;Payment methods menu, click on the 'new' button and select the 'HikaShop PayPal Checkout payment plugin' to configure the PayPal Checkout payment method which is now replacing it. Once done and the new PayPal Checkout payment method is available on your website, disable the old PayPal payment method and this error message will disappear.&quot; I tried following these guidelines, but got a Joomla error page. I updated HikaShop to the latest version, but the problem persisted. After switching on debugging, I saw that it's a PHP error:  Compile Error: Array and string offset access syntax with curly braces is no longer supported  The code is:  public static function getScriptNameFromUrl ( $url ) { $path = parse&#95;url($url, PHP&#95;URL&#95;PATH); $len = strlen($path); if ( $len == 0 || '/' == $path{$len-1} ) { return &quot;&quot;; } return basename($path); }  coming form /homepages/3/d522575378/htdocs/joomla-2014-04-07/plugins/hikashoppayment/platron/PG&#95;Signature.php:17")*

(N.B.: I was able to fix this issue because I also have ssh access to the site. I simply edited the PHP code mentioned in the exception report, and replaced the curly braces by normal [] indexing. This way, I was able to continue. But perhaps this should be fixed in an upcoming version to ensure PHP compatibility?)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwOTk2OC1jYW50LWFkZC1uZXctcGF5bWVudC1vcHRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

10 months 4 weeks ago [\#369724](#369724) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can't add new payment option](/forum/25-install-update/909968-cant-add-new-payment-option#369724 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- Error-message(debug-mod must be tuned on) -- : Compile Error: Array and string offset access syntax with curly braces is no longer supported  Hello,  I recently got the warning message &quot;Your PayPal payment method is obsolete and will soon be discontinued by PayPal. Please go in the System&gt;Payment methods menu, click on the 'new' button and select the 'HikaShop PayPal Checkout payment plugin' to configure the PayPal Checkout payment method which is now replacing it. Once done and the new PayPal Checkout payment method is available on your website, disable the old PayPal payment method and this error message will disappear.&quot; I tried following these guidelines, but got a Joomla error page. I updated HikaShop to the latest version, but the problem persisted. After switching on debugging, I saw that it's a PHP error:  Compile Error: Array and string offset access syntax with curly braces is no longer supported  The code is:  public static function getScriptNameFromUrl ( $url ) { $path = parse&#95;url($url, PHP&#95;URL&#95;PATH); $len = strlen($path); if ( $len == 0 || '/' == $path{$len-1} ) { return &quot;&quot;; } return basename($path); }  coming form /homepages/3/d522575378/htdocs/joomla-2014-04-07/plugins/hikashoppayment/platron/PG&#95;Signature.php:17")*

Hi,

This plugin has not been included in HikaShop for more than 10 years. So you have an old version of the plugin. That's why you're getting this error on a new version of PHP.
If you wish to continue using this payment plugin, then you should update it with the latest version available on github: [ github.com/HikaShop/hikashoppayment-platron](https://github.com/HikaShop/hikashoppayment-platron)
This would automatically fix the problem.
Otherwise, I would recommend removing it from your website.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwOTk2OC1jYW50LWFkZC1uZXctcGF5bWVudC1vcHRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[EMAS](/forum/user/35079-emas "View EMAS's Profile")**
- [![EMAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35079-emas "View EMAS's Profile") Topic Author
- [ Offline](/forum/user/35079-emas)

Less More

- Posts: 5
- Thank you received: 0
-

10 months 4 weeks ago [\#369730](#369730) by [EMAS](/forum/user/35079-emas "View EMAS's Profile")  Replied by *[EMAS](/forum/user/35079-emas "View EMAS's Profile")* on topic *[Can't add new payment option](/forum/25-install-update/909968-cant-add-new-payment-option#369730 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- Error-message(debug-mod must be tuned on) -- : Compile Error: Array and string offset access syntax with curly braces is no longer supported  Hello,  I recently got the warning message &quot;Your PayPal payment method is obsolete and will soon be discontinued by PayPal. Please go in the System&gt;Payment methods menu, click on the 'new' button and select the 'HikaShop PayPal Checkout payment plugin' to configure the PayPal Checkout payment method which is now replacing it. Once done and the new PayPal Checkout payment method is available on your website, disable the old PayPal payment method and this error message will disappear.&quot; I tried following these guidelines, but got a Joomla error page. I updated HikaShop to the latest version, but the problem persisted. After switching on debugging, I saw that it's a PHP error:  Compile Error: Array and string offset access syntax with curly braces is no longer supported  The code is:  public static function getScriptNameFromUrl ( $url ) { $path = parse&#95;url($url, PHP&#95;URL&#95;PATH); $len = strlen($path); if ( $len == 0 || '/' == $path{$len-1} ) { return &quot;&quot;; } return basename($path); }  coming form /homepages/3/d522575378/htdocs/joomla-2014-04-07/plugins/hikashoppayment/platron/PG&#95;Signature.php:17")*

Thank you for your response, Nicolas.
The problem was that I *tried* to add the new PayPal method, but couldn't do so due to this error. After my manual edit, I could add the new one (and remove the old).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwOTk2OC1jYW50LWFkZC1uZXctcGF5bWVudC1vcHRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
