View Full Version : Super Error Links Directory 2.0.1
yotsume
06-14-2007, 03:14 PM
Super Error Links Directory 2.0.1
I just bought and installed the latest version of Links Directory 2.0.1 and after I install it gives me this error when I try to click on the Admin menu links such as: "Modify Settings", etc...
Oh please how can I fix this error???
Parse error: parse error, unexpected T_LNUMBER in /homepages/14/d94830504/htdocs/forum/admincp/vba_links_admin.php2733
KW802
06-14-2007, 04:07 PM
Try uploading a fresh copy of the vba_links_admin.php file to your /forum/admincp folder in binary mode.
yotsume
06-14-2007, 04:13 PM
Ok i deleted and re-uploaded it in binary and still same error. :(
There are three Links admin menu options that don't kick back an error are:
-Validate New Links
-Validate New Posts
-Validate New Categories
Brian
06-15-2007, 10:10 AM
I just took a look at your site since you had submitted a support ticket and it's working fine for me, so I'm assuming you were able to get the file uploaded properly?
yotsume
06-15-2007, 02:43 PM
Do you not see the replies I made in the members areas to my support ticket I made on this issue? Here is how I duck-taped fixed this!
1. I had to delete this code from: vba_links_admin.php on line #2733
$report = $db->query_first("SELECT data, lastlinkid, checkagain, type FROM " . TABLE_PREFIX . "adv_links_reports WHERE repid = $repid");
$report['data'] = unserialize($report['data']);
if ($report['checkagain'])
{
// Double check it incase there was a timeout issue
$report['lastlinkid'] = $report['lastlinkid'] - 1;Once I deleted this code the menu in the adminCP became active and no longer gives me any errors which allowed me to setup.
2. I was then getting a error when trying to submit a link saying I did not enter in the correct string for verification. It also kicked back this error:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions_vba_links_savelink.php on line 63
3. So I then deleted the verification check code on line #63 from the /includes/functions_vba_links_savelink.php file. (now that I can actually use the Admin settings I see there are options to uncheck image verification.)
// Image verification
if ($_POST['do'] == 'doaddlink' AND $vbulletin->options['regimagetype'] AND in_array('addlink', $vba_options['links_imageverify']) AND !$vbulletin->userinfo['userid'])
{
require_once(DIR . '/includes/functions_regimage.php');
if (!verify_regimage_hash($imagehash, $imagestamp))
{
eval('$errors[] = "' . fetch_error('register_imagecheck') . '";');
}4. "Send to Friend" Error
So once I made these two code deletions my whole links directory system seems to be working fine except... When anyone goes to use the email the link function of the script aka "Send to Friend" the email takes a long time to get to people and then the url in the email is just a couple of characters off so it links them to a blank white page. I have no idea how to "ducktape" fix that one! Please login again and send yourself a link.
The Correct URL is: showlink.php?do=showdetails&l=2
Wrong URL in email: showlink.php?do=showdetails%3C=2
I am guessing there is some conflict with the mods I have installed on my board. So HOW DO WE FIX THIS STUFF??? LOL I can delete code all day but then I'll just be left with nothing! DOH!
5. Navbar Links Issues:
A) I have photopost installed on my server outside my forum directory. So when I try to include that link on the navbar in "Navbar Replacements" How can I get the correct URL for my gallery to show on the navbar since it can't simply be "prefixed" with my forum's URL.
B) I added a "Links" to my Navbar templete and it gets doubled up when your on the links index page. /links/links. How do I fix that???
Ok so that is all the problems I have found for me so far... Please any and all help fixing these would be much appreciated...
Brian
06-16-2007, 10:14 AM
What version of PHP, MySQL, and vBulletin are you running? Do you have anything unusual in the way of software installed on your server? There are definitely no errors in the code you're posting and you really shouldn't start removing code like that, so it sounds more like there's something weird going on with your server.
yotsume
06-16-2007, 08:56 PM
Hi,
Here is my info of what I am running:
vBulletin Version 3.6.4
vBadvanced CMPS v3.0 RC1
vBadvanced Links Directory v2.0.1
PhotoPost: 5.6
PHP Version: 4.4.7
MySQL Version: 4.0.27
Change Threads Owner 1.0
CMPS Navigation 1.12
Cyb - Login To Other User Account 1.7
Files Upload Center 3.3.4
FlashChat Integration 3.07
Members who have read a thread 2.21
Members who have visited the forum 4.37
vB Media Player 1.2
vB Spell 0.10.2b
vB Survey System 1.9a
I fixed two problems:
Now that I have been able to access the menus and settings I unchecked the options for image verification. So my problem posting links is gone that I mentioned above. So I added back that set of code. My Board is members only so image verification is useless to me. What image verfication is on none can see the image so they cant post links.
My navbar link to my links page I fixed by adjusting the code I had added in my navbar template. My email problem is still there... I know I should not remove code but I needed links up and running and now it is but just with an email glitch so far as I can tell... That seems to be the only thing wrong. What does line #2733 in the vba_links_admin.php code do? Do I need it for anything???
Brian
06-17-2007, 12:15 PM
Just replied to your support ticket. ;)
yotsume
06-17-2007, 02:18 PM
I just replied to your reply. THANKS for your help here...
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.