Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Links Manager II


Recommended Posts

Have you added a category? If so, then something is wrong with your installation.

 

Jack

 

Yeah I have added a catagory, do you think that I might have left something out that I should have installed and if so what is it? And by the way I really do apperiate all of this, thank you.

 

Shawn

Link to comment
Share on other sites

You can add a category but there isn't a button to add a link? You've got me there. All I can think of is that the files are corrupted in some way.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You can add a category but there isn't a button to add a link? You've got me there. All I can think of is that the files are corrupted in some way.

 

Jack

 

So basically uninstall and try to reinstall it all over again

Link to comment
Share on other sites

Hi Jack,

 

Firstly I want to say your contributions on this site are some the most wanted I am sure, great work!

 

Anyway I uploaded your lastest links manager II and I am having a very small problem with the categories area.

 

When I switch on DISPLAY LINKS IN CATEGORIES,

 

I click on the category I want to view but then I get redirected to a 404 page saying "This product/category does not exist it may have been deleted.

 

But when the categories are turned off all is good..

 

I have tried a few things that you have mentioned previously in regards to the language settings but nothing seems to change anything.

 

I have left the categories on at present if you wanted to try for yourself it's at www.afterdarkaccessories.com/links.php

 

Sorry for being a pain to bring this up.

 

Many Thanks in advance for any help you can give.

 

Bruce

Link to comment
Share on other sites

If you goto admin->Links Manager II->Links, is there a link entered for the category that isn't working? Is it enabled? Can you create a new links for that category from admin? From the shop?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

If you goto admin->Links Manager II->Links, is there a link entered for the category that isn't working? Is it enabled? Can you create a new links for that category from admin? From the shop?

 

Jack

 

 

Hi Jack,

 

All links are enabled and work from the shop when the categories are turned off.

 

With the link categories turned off in admin config:

I can add links from both the shop and admin with no problems and the redirection to the sites is all good. I was also able to create new categories within the admin.

 

With the link categories turned on:

The category shows up but now I am unable to access the categories I had created with the working links in them, although the counter says that there are links under them. I am also able to add new links from both the shop and admin with no problems. The new category shows up but the same happens by redirecting me to the 404 page.

 

Hope this helps a little

 

cheers

 

Bruce

Link to comment
Share on other sites

Adding links with categories turned on is the default operation and has worked for years ad it works fine for me here. So it would seem you have either found some strange bug in the code, possibly related to the php version your host uses, or there is a problem in your installation. Installing it into a clean shop would be my recommendation.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Jack

 

I'm still having a problem with LinksManager, when in admin click links then click new link. I just tried the latest upload Links Manager_II_V_1.22.zip and I still get the same error.

 

Every one I try produces the error at page bottem as described in my post 493.

 

I have even installed this on a fresh stock install. I mainly use IE 6, I dont get these errors while viewing with firefox

Ideas?

 

Done but with errors on the page.

 

Line: 33

Char: 57

Error: Syntax Error

Code: 0

URL: [url="https://mystore.com/myadminfoldername/links.php?page=0&action=new"[/url]

 

Win XP Pro

mysql5

php5

oscommerce-2.2ms2-060817

 

Thanks

Link to comment
Share on other sites

There is a javascript error in admin/links.php. To fix it, change this line

  if (links_category == "" || links_category.length < 1>) {

to this one

  if (links_category == "" || links_category.length < <?php echo ENTRY_LINKS_DESCRIPTION_MIN_LENGTH; ?>) {

Maybe that will fix your problem.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

There is a javascript error in admin/links.php. To fix it, change this line
  if (links_category == "" || links_category.length < 1>) {

to this one

  if (links_category == "" || links_category.length < <?php echo ENTRY_LINKS_DESCRIPTION_MIN_LENGTH; ?>) {

Maybe that will fix your problem.

 

Jack

 

[solved] That fixed it.

 

Thanks Jack :)

Link to comment
Share on other sites

I installed this contribution and after some searching on the forum I got it to work.

I aded 2 new language which wher not in the file.

Dutch and French.

Most of the translation are in place but I have trouble finding the folowing.

 

On My site i shows like this.

ENTRY_LINKS_DESCRIPTION

ENTRY_LINKS_DESCRIPTION_TEXT

ENTRY_LINKS_CATEGORY

ENTRY_LINKS_CATEGORY_NEW

TEXT_CATEGORY_OVERRIDE

TEXT_INFO_LINK_CATEGORY

 

The Englisch version is OK. but the french and dutch show the same errors.

Can these translations be found in the database? Where?

 

I hope someone can help.

Link to comment
Share on other sites

I installed this contribution and after some searching on the forum I got it to work.

I aded 2 new language which wher not in the file.

Dutch and French.

Most of the translation are in place but I have trouble finding the folowing.

 

On My site i shows like this.

ENTRY_LINKS_DESCRIPTION

ENTRY_LINKS_DESCRIPTION_TEXT

ENTRY_LINKS_CATEGORY

ENTRY_LINKS_CATEGORY_NEW

TEXT_CATEGORY_OVERRIDE

TEXT_INFO_LINK_CATEGORY

 

The Englisch version is OK. but the french and dutch show the same errors.

Can these translations be found in the database? Where?

 

I hope someone can help.

 

I found the error myself.

My fault By translating the text I replaced some words and the links above were overwritten.

Link to comment
Share on other sites

I have Links Manager II correctly installed and it's working fine. Thanks for a great contribution.

This post concerns an attempted security breach. I'm wondering if others have seen it and if there is a defense.

 

The attack attempts to insert a bogus link for some nefarious purpose. The overall attempt fails because the link stays in "Pending." (a great example of how good, secure design really works) but they do succeed in adding records to the database (which is a necessary and understood consequence of allowing anyone to add links). The problem is that the bogus link cannot be deleted via the admin screens. The bad link shows up in the Administrator's "Links" screen. When you attempt to select it for deletion an error occurs. The only way I know to delete the bad link is to edit the database directly which is rarely a good practice.

For reference the error displayed is:

 

Warning
: array_merge() [
]: Argument #2 is not an array in
/.../oscommerce/admin/links.php
on line
796

 

Warning
: reset() [
]: Passed variable is not an array or object in
/.../oscommerce/admin/includes/classes/object_info.php
on line
17

 

Warning
: Variable passed to each() is not an array or object in
/.../oscommerce/admin/includes/classes/object_info.php
on line
18

Any thoughts, comments or better solutions from the community?

Yulem

 

Hello, I have tried the below fix for the above error on my store.

 

 

In admin/links.php, find this code at line 796:
$lInfo_array = array_merge($links, $category);

and change it to

$lInfo_array = array_merge($links, (array)$category);

 

Also, if the link being submitted contains some words that would make it a bad link, like viagra, then you can add that word to the blacklist in admin. That will prevent the link from ever being accepted.

 

Jack

 

When I make the change I get the following error now when I click on the "links manager II" link.

 

Parse error: syntax error, unexpected T_REQUIRE in /catalog/admin/links.php on line 1

 

Any help would be much appreciated.

Link to comment
Share on other sites

Hello, I have tried the below fix for the above error on my store.

 

 

 

 

When I make the change I get the following error now when I click on the "links manager II" link.

 

Parse error: syntax error, unexpected T_REQUIRE in /catalog/admin/links.php on line 1

 

Any help would be much appreciated.

 

 

ok, I updated my links manager to the newest that just came out. now everything is working wonderfully except I am getting a link under the links manager that looks like this BOX_LINKS_LINKS_EXCHANGE and goes to a non-existent page.

Link to comment
Share on other sites

Thank you for all of your help on this. I went through the whole install instructions again. I was able to get the link to bring up a page but I Get the following error.

 

 

Warning: require(includes/languages/english/links_exchange.php) [function.require]: failed to open stream: No such file or directory in /admin/links_exchange.php on line 15

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/english/links_exchange.php' (include_path='.:/usr/local/php5/lib/php') in /admin/links_exchange.php on line 15

 

 

Any ideas on this one. I am sure it is something simple that I am over looking but I appreciate any help.

Link to comment
Share on other sites

The error says it can't find the includes/languages/english/links_exchange.php file. you have to upload the new files from the contribution to your server.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The error says it can't find the includes/languages/english/links_exchange.php file. you have to upload the new files from the contribution to your server.

 

Jack

 

 

Jack,

I have uploaded all of the files frmo the contribution including admin/includes/languages/english/links_exchange.php. I am not however showing one for the non-admin side of things to upload. Please let me know what you think.

 

Thank you

 

linksmanager.png

Link to comment
Share on other sites

The links_exchange file is only for the admin. If you don't have it there, you've made a mistake.

 

Jack

 

 

You are correct, for some reason the filesnames.php did not get updated. I went through the installation again and made sure everything loks good. Once I did that and went to the links_setup.php I get the message "Looks like Links Manager is already installed. Aborting..." I go to links_db_update.php and it loadds and then goes to the home page with no messages of any kind.

 

Everything works GREAT except for the links_exchange.php page, I get the following error when I try to go to that page

 

1146 - Table 'gottoysproducts.TABLE_LINKS_EXCHANGE' doesn't exist

 

select * from TABLE_LINKS_EXCHANGE

 

[TEP STOP]

 

 

I go into my MYSQL manager and I am not showing the database tables that it is referring to.

To give you a little more background I have installed a previous version of this contrib and have loved it. Everything worked great and I just wanted to add the new features you have added. I am wondering if for some reason the database is not being updated due to my having a previous version.

 

I am sorry for all the questions but I feel like I have done everything I need to but it just doesnt seem to work. I am sure this is somethign VERY simple that I am just missing but I am pulling what little hair I have left out trying to get this working.

 

Once again thank you for all your help.

Link to comment
Share on other sites

Hi Jack,

 

I have noticed a few ppl before getting this error but did not see a fix.

 

Warning: Division by zero in /home/pricelessweddings/admin/includes/classes/split_page_results.php on line 33
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_LINKS_DISPLAY' at line 1

select l.links_id, l.links_url, l.links_image_url, l.links_date_added, l.links_last_modified, l.links_status, l.links_clicked, ld.links_title, ld.links_description, l.links_contact_name, l.links_contact_email, l.links_reciprocal_url, l.links_reciprocal_disable, l.links_status from links l left join links_description ld on l.links_id = ld.links_id where ld.links_title like '%%' or l.links_url like '%%' order by ld.links_title limit -0, MAX_LINKS_DISPLAY

 

when i click on links.

 

PHP Version 5.2.6

 

Thanks for all you support

Link to comment
Share on other sites

You need to apply the split_page_results fix to your files. You can find it in the upgrade files of the latest oscommerce package.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...