Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Error message on updating another component
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Error message on updating another component
#30094
Error message on updating another component 11 Years, 11 Months ago Karma: 0
I am running the latest version of Joomla V.2.5.6 and all was well. I then updated the Kunena Forum component and immediately got this error message:
Warning: range() [function.range]: step exceeds the specified range in C:\xampp\htdocs\Helstcomp\modules\mod_ariextmenu\mod_ariextmenu\kernel\Web\JSON\JSON.php on line 378
I couldn't work out the connection between the menu code and the Kunena code but looking at line 378 gave me this:
if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) {
I edited that line to read this
if (is_array($var) && count($var) && (array_keys($var) !== range(1, sizeof($var) - 1))) {

and that solved the error message problem.
My coding knowledge is very limited so I need to ask is this an acceotable way of solving the problem or am I geeting into more trouble.
I am working on my localserver instance of my web site as I always do to check before updating anything on the hosted site
Thanks in anticipation!
The administrator has disabled public write access.
 
#30106
Re:Error message on updating another component 11 Years, 11 Months ago Karma: 748
Hello,

It seems this is PHP problem, you can read about it here.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#30110
Re:Error message on updating another component 11 Years, 11 Months ago Karma: 0
Thank you for your reply. I have read the document that the link refers to and have to say that I am now totally confused. I didn't understand any of it but did gather that there does not seem to be a solution to the problem. I do not wish to refer back to an earlier version of Joomla and I need the additional features of the latest version of the Kunena Forum. I would like to keep this menu module too as I have just got the site set up as I want it and have spent many hours getting there. I really don't want to have to start uninstalling modules and finding alternatives but there doesn't seem to be any other way round this. It seems that I can't have the latest version of Joomla with the latest version of Kunena Forum AND this menu module. Can you suggest some other way round this problem.
My editing does work but I have no idea if I am causing other probelems.
The administrator has disabled public write access.
 
#30130
Re:Error message on updating another component 11 Years, 11 Months ago Karma: 748
What PHP version do you use? Does the problem occur only on pages of Kunena forum?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#30132
Re:Error message on updating another component 11 Years, 11 Months ago Karma: 0
Thanks for the quick response.
PHP version = PHP Version 5.3.1
Yes just on the Kunena pages.
The administrator has disabled public write access.
 
#30136
Re:Error message on updating another component 11 Years, 11 Months ago Karma: 748
You can use the next code:

Code:


if (is_array($var) && count($var) && (array_keys($var) !== @range(0, sizeof($var) - 1))) {



or contact Kunena developers and ask what version of Services_JSON library they use.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12