PDA


View Full Version : Warning: str_repeat(): Second argument has to be greater than or equal to 0


nealparry
07-31-2005, 07:47 AM
A member reported getting this after the update, a few hours after:

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?

Brian
07-31-2005, 11:29 AM
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.

nealparry
07-31-2005, 02:01 PM
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

nealparry
07-31-2005, 02:04 PM
in fact, it does it will all vba link admin pages via admin cp

nealparry
07-31-2005, 02:16 PM
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:

Get me out of this frame set!

Brian
07-31-2005, 03:47 PM
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:
define('CP_REDIRECT', 'vba_links_admin.php' . $session['sessionurl']);


And replace with this:
define('CP_REDIRECT', 'vba_links_admin.php?do=dirmanager' . $session['sessionurl']);

Then that should take care of the problem when saving the display order.

nealparry
07-31-2005, 04:26 PM
Right modded the file.

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

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

nealparry
08-02-2005, 07:29 AM
just this problem now Brian ;-)

Brian
08-02-2005, 01:23 PM
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. :)

FleaBag
08-03-2005, 04:11 PM
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.

Brian
08-03-2005, 06:39 PM
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.

nealparry
08-03-2005, 07:13 PM
Problem now solved, excellent stuff. Thanks Brian for excellent support again.