vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v1.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2005, 06:47 AM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Question Warning: str_repeat(): Second argument has to be greater than or equal to 0

A member reported getting this after the update, a few hours after:

Quote:
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /includes/functions_links.php on line 505

Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /includes/functions_links.php on line 505


Any ideas?
Reply With Quote
  #2  
Old 07-31-2005, 10:29 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

Admin CP => vBa Links Directory => Edit Directories

Go there and save the display order to be sure that the directory cache is updated. If that doesn't help, please let me know exactly which page they're seeing this error on.
Reply With Quote
  #3  
Old 07-31-2005, 01:01 PM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

Ok, just asking members now to check

Just one thing, when I clicked the save option on vba links admin in Edit Directories via admin cp , it took me back to the full vba clinks admin page and not back to the directory listing (Not the default vb admin cp)

Not a big problem
Reply With Quote
  #4  
Old 07-31-2005, 01:04 PM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

in fact, it does it will all vba link admin pages via admin cp
Reply With Quote
  #5  
Old 07-31-2005, 01:16 PM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

I'm getting some real problems with the links directory now, see images. Quality is poor due to size limitations:

How set up in Links Admin / Result

EDIT: Sorted it by putting all cat's titles and link sections in same order, ie: 1-13. Could have cats numbered 1, 2, etc before and links sections 1, 2, 3, underneath before in v 3.0.7

Just would like the admin cp save settings sorted i suppose, this just flashed up on a white screen for about half a second when settings saved and took me back to links admin cp main page:

Quote:
Get me out of this frame set!
Attached Images
File Type: gif 1.gif (17.3 KB, 9 views)
File Type: gif 2.gif (9.8 KB, 8 views)

Last edited by nealparry; 07-31-2005 at 01:20 PM.
Reply With Quote
  #6  
Old 07-31-2005, 02:47 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

Quote:
Originally Posted by nealparry
EDIT: Sorted it by putting all cat's titles and link sections in same order, ie: 1-13. Could have cats numbered 1, 2, etc before and links sections 1, 2, 3, underneath before in v 3.0.7
I'm not sure I follow what you're saying here...

For the redirect problem, if you'll look in your vba_links_admin.php file for this code:
PHP Code:
    define('CP_REDIRECT''vba_links_admin.php' $session['sessionurl']); 
And replace with this:
PHP Code:
    define('CP_REDIRECT''vba_links_admin.php?do=dirmanager' $session['sessionurl']); 
Then that should take care of the problem when saving the display order.
Reply With Quote
  #7  
Old 07-31-2005, 03:26 PM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

Right modded the file.

I'll explain here, I lost myself too when reading it back

I would have it like this:

ORDER

Burnley Web Main 1
-- Business 1
-- History 2
-- Testing 3

Members Favorites 2
-- Search Engines 1
-- Homepages 2
-- BLAH BLAH 3

But now when I do this in the links admin cp, the order goes screwy on the links page and some directories arent under their parent. Hope this is a little clearer
Reply With Quote
  #8  
Old 08-02-2005, 06:29 AM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

just this problem now Brian ;-)
Reply With Quote
  #9  
Old 08-02-2005, 12:23 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

I see that you've submitted a support ticket, so I'll be taking a look at that just as soon as I finish going over new posts.
Reply With Quote
  #10  
Old 08-03-2005, 03:11 PM
FleaBag's Avatar
FleaBag FleaBag is offline
Member
 
Join Date: Mar 2004
Posts: 99
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

I'm getting the same problem Brian. The same error to begin with - I guessed it would be the cache so I updated the order. But the listings are all to whack, like with neal's installation.
Reply With Quote
  #11  
Old 08-03-2005, 05:39 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

Please download the package from here again and replace your forum/includes/functions_links.php file with the one in the package and that should take care of the problem.
Reply With Quote
  #12  
Old 08-03-2005, 06:13 PM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Warning: str_repeat(): Second argument has to be greater than or equal to 0

Problem now solved, excellent stuff. Thanks Brian for excellent support again.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: Invalid argument supplied for foreach() in /includes/vba_cmps_include_bottom Pooh Troubleshooting & Problems 1 06-30-2005 03:12 PM
Warning: Invalid argument supplied for foreach() Brian Bugs From 2.0 RC1 1 06-21-2005 09:14 PM
Warning: Invalid argument supplied camoman Troubleshooting / "How do I..." Questions 3 04-10-2005 11:43 AM
Warning: Invalid argument supplied for foreach() in */public_html/forum/* Raider Troubleshooting / "How do I..." Questions 10 03-21-2005 07:31 PM


All times are GMT -4. The time now is 04:02 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.