PDA

View Full Version : Prev/Next Links causes Fatal Error & Cannot Open Closed Link


Spikeman
02-27-2010, 05:58 AM
I get this on the showlink.php the "Reply to Link" seems to be misaligned.. everything else is fine.

Here is full url so you can see here http://www.beta-tester.co.uk/iphone/links/showlink.php?l=23&catid=7 or this one as I just switched to seo urls http://www.beta-tester.co.uk/iphone/links/cases--protection-7/ultra-case---be-different-your-iphone-3g--3gs-cas-23/

Could not post this is bug section I get a no permission message?

another bug, when I click next or previous link at the bottom I get this

Fatal error: Call to a member function query_read() on a non-object in /websites/*******/******/beta-tester.co.uk/public_html/iphone/includes/vba_links_plugin_sf.php on line 297

CareyCrew
02-27-2010, 06:27 AM
What browser are you using?

I have looked using Opera and Firefox and there is no alignment issue, however clicking the "Reply Link" button results in this :

Warning: require_once([path]/includes/functions_regimage.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/vba_links_functions.php on line 914

Fatal error: require_once() [function.require]: Failed opening required '/websites/LinuxPackage02/be/ta/_t/beta-tester.co.uk/public_html/iphone/includes/functions_regimage.php' (include_path='.:/usr/share/pear:/usr/share/php') in /websites/LinuxPackage02/be/ta/_t/beta-tester.co.uk/public_html/iphone/includes/vba_links_functions.php on line 914

Looks like some files did not get uploaded correctly.

You won't get posting access to the "Bugs " section, Brian moves reported faults there manually when he has confirmed/replicated a bug.

Our Sponsors
 

Spikeman
02-27-2010, 06:48 AM
I am using safari on mac, your are right I checked with firefox and all is ok :confused: hopefully someone has an answer?

I have uploaded all files again and confirmed they are present, so dont know about that error

You won't get posting access to the "Bugs " section, Brian moves reported faults there manually when he has confirmed/replicated a bug.

That makes sense ;)

Spikeman
02-27-2010, 07:26 AM
Further to these two errors, I closed the link to see if this would have any bearing on the style and misalignment in safari, however I got the same results! I then tried to open the link again but it will not open, it still shows the closed link button in both safari and firefox.

Our Sponsors
 

Brian
02-27-2010, 10:21 AM
I checked the page in IE and FF, but I'm not seeing any alignment issues. I'll have to see if I can use my girlfriend's Mac in a bit.

For the error when clicking the previous/next links, I've just updated the forum/includes/vba_links_plugin_sf.php file in the download package here to include the fix. If you will download the files again and update that one on your server, that should take care of the issue.

As for opening the link back, if you click on the 'Admin Options' menu near the top-right of the page then you should see the option to re-open the link.

Spikeman
02-27-2010, 12:48 PM
Thanks for the fix to the next & previous links.

With reference to opening the link again, I have tried to open it using the admin link but it shows as closed despite repeated attempts.

As for the misalignment issue I am at a loss.

Brian
03-01-2010, 01:42 PM
Ahhh, it looks like a <if> tag got removed somehow and that's why you're not able to re-open the link. If you'll look in your ADV_LINKS_SHOWLINK template for this code:
value="closelink"

And replace it with this:
value="<vb:if condition="$link['open']">closelink<vb:else />openlink</vb:if>"

Then that should take care of the issue.

Spikeman
03-01-2010, 02:35 PM
I can find 2 references to value="closelink"

1<label for="closelink"><input id="closelink" name="do" type="radio" value="closelink" /> <vb:if condition="$link['open']">{vb:rawphrase close_x, link}<vb:else />{vb:rawphrase open_x, link}</vb:if></label>

2<option value="closelink"><vb:if condition="$link['open']">{vb:rawphrase close_x, link}<vb:else />{vb:rawphrase open_x, link}</vb:if></option>

they both look to be coded correctly, or am I missing something?

Brian
03-02-2010, 09:49 AM
The first one should be the only one that needs to be changed.