Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Viper0409

Pioneers
  • Posts

    49
  • Joined

  • Last visited

Posts posted by Viper0409

  1. I have just updated from auspost 2.02c to auspost 3.01. After uploading all the necessary files to the correct folders on the server and then navigating to the admin > shipping module and before I can uninstall and reinstall the shipping modules, I receive this error > > > Fatal error: Cannot redeclare class auspost in catalog/includes/modules/shipping/auspost.php on line 17.

     

    Line 17 is class auspost {

     

    I get exactly the same error when I try to proceed to checkout in the storefront.

     

    Does anyone have ideas or solutions for this error. Thanks in advance.

     

    Andrew

  2. There was no offense taken. I was just trying to isolate the problem. Did you try looking at a page that doesn't use Header Tags as suggested?

     

    Jack

     

    Hi again Jack,

     

    Yes, the only pages at the moment that seem to be unaffected are index.php and login.php and just now I refreshed the index.php page and the problem is appearing there now too. hmmmm this seems to be getting worse for some reason, I will finish this post and close my browser and restart it to see if that makes a difference. It appears to be affecting most pages now except login.php.

     

    I did happen to find something on this forum regard the foreach() warning but no clear solution was offered, and it had something to do with the foreach() being an array and not a string, so I am still scratching my head with this one.

     

    Thanks Jack, great contribution btw, hopefully this turns out to be just a minor gliche.

     

    Andrew

  3. That code, as you know, isn't from Header Tags code. To determine if Header Tags is at fault, remove the code added to the column_left.php file and go to a page that hasn't been altered by Header Tags (maybe contact_us.php). If it still fails, it isn't Header Tags.

     

    Jack

     

    Thanks for the quick reply Jack, I am not sure, but I think that piece of code belongs to a category optimization mod that I installed some time ago. However, I haven't had any problems until after I installed the HTC contribution.

     

    The code that was added to the column_left.php has already been removed (actually this problem first came about when I did insert the code into the column_left.php file) so I removed it and placed it in the column_right.php file and had the same problem, so I removed it as well.

     

    NOTE: This is optional. It will add an info box on the product pages with keyword loaded text from the product page. This will increase the keyword density for that page, which should help with its position. If you don't want to use this option, just skip this step.

     

    So, I am not blaming your contribution Jack, but just letting you know what has occurred so far and trying to find out what I can do to eliminate this problem. If you have any other suggestions, I would be glad to try them out.

     

    regards

     

    Andrew

  4. I have installed this contribution a few days ago and it all seems to be working well as far as how the contribution functions, except for a problem when I view the store. I am getting this error below

     

    Warning: Invalid argument supplied for foreach() in catalog/includes/boxes/categories.php on line 46
    .

     

    The index page displays as normal but when I go to any of the categories or other pages such as "contact us, conditions, shipping etc, I get the above warning which repeats as many times as the number of categories I have in my store. This is the section of code that I assume the warning is referring to ,

     

    Line 46 -> foreach ($parent_child as $index_of => $sub_parent_child) {

    if ($counter == $sub_parent_child['parent_id']) {

    // a category has this one as a parent, so parent has a subcategory

    $categories_string .= '->';

    break;

     

    This also distorts the page in so far as the left hand column widens to accommodate the width of the above warning message. This problem only started after HTC was installed and I have been through the forum looking for a solution but haven't been able to find one.

     

    Does anyone have any ideas about this ?

     

    Andrew

  5. Then you've got something going on there that is beyond Links Manager. Renaming a file and displaying it should work. There is just no way for it to fail that I can think of. Yet, you say it fails. I've no idea what to tell you to try next at this point.

     

    Jack

     

    Hi Jack

     

    The file is not failing, I only mentioned it as something unusual, however it did update when I overwrote the file. I get a failure box stating to check file permissions. When I change file permissions, there is no difference when renaming or deleting. I still get a failure. The only thing I have done since installing Link manager is updating osCommerce with the latest release osCommerce 2.2ms2-051113. All other uploads using WS FTP Pro work fine. So, I doubt whether WS FTP is uploading files in the incorrect format, I have checked this.

     

    Jack, also as I have stated previously, if I keep the original files that came with links manager, and delete links.php in the address bar of IE and replace it with customers.php or newsletters.php, I get those pages opening with the Links Manager and its 3 menu items displaying, i.e. Links, Link Categories, and Link Contacts. but when I leave links.php in the address bar and refresh the page I get the error again.

     

    As you can see, my problem is frustrating to say the least, however, I don't have any other alternatives, my hosts are unwilling to help, and this forum is my only option to find a solution. Any other fault finding ideas would be appreciated.

     

    Viper

  6. I think you may have misunderstood what I was explaining to do. Let me run through it again, using mysite.com as the domain name. You should use yours instead.

     

    1 - Make a copy of customers.php and rename it links.php (you will need to rename the oriignal links.php first).

     

    2 - go to http://mysite.com/admin/links.php. Does the customers data display?

     

    3 - go to http://mysite.com/admin/link_categories.php. Do you get the 500 error?

     

    Jack

     

    Hi Jack

     

    I did try the above method earlier and I was still getting the error 500, I just tried it again now as per your instructions, and it is the same.

     

    In step 2. >>> Error 500 and in step 3. >>> Error 500

     

    One strange thing I did notice was that I cannot delete or rename links.php on server, I could only overwrite it to do your above instructions using WS FTP Pro.

     

    Viper

  7. Your results aren't making sense to me. If you can go to admin/customers.php and have it display correctly and then you rename customers.php to links.php and you cannot display correctly, I don't see how that is possible. You are attempting to display the same file but with it named to something else. That should not fail. You will need to try to find the reason for that before moving on.

     

    Jack

     

    Hi Jack

     

    Sorry about the confusion, when I delete everything after admin/ in the address bar of IE, and just have admin/customers.php, I get my list of customers displaying, this should be right. However, when I do not delete everything in the address bar and only delete the file name links.php and replace it with customers.php, I then have three menu items under Link Manager displaying, which are Links, Link Categories and Link Contacts. Correct ? Ok, now, if I click on Link Categories I then get thrown to the error 500 page. This is the same when I click on Links and Link Contacts. i.e. error 500 page.

     

    What I didn't try before was only deleting the file name links.php and leaving the rest of the file id and then typing customers.php where links.php was.

     

    I hope I have clarified things a little further.

     

    Viper

  8. Hi Jack and thanks for taking the time to reply to my posts.

     

    I tried your suggestions and am not having much luck, I made a copy of a few files including customers.php and renamed them links.php, and then clicked on Links Manager in Admin and still keep getting the same error 500. However when I delete everthing in the address bar after admin/ and then type, say, newsletter.php, it goes directly to that page. So it seems there is something in the links manager script that is throwing the 500 error.

     

    I tried typing in the address after admin/ of links.php, link_categories.php and links_contact.php and still get the same error.

     

    When I click on Links Manager in Admin, this is the address that is displayed in the address bar in IE,

    https://***.**.***.**/mydomain.com.au/admin/links.php?selected_box=links&osCAdminID=514b43fedb2eb1e69e7835eae473b5d4

     

    The above address has a few things changed around for security reasons. This has to be something so simple, that I am, perhaps, overlooking. :huh:

     

    Viper

  9. Hi All and Merry Xmas

     

    Back after a little Xmas break.

     

    Jack, yep you are right. I changed permissions on all files and this made no difference, so I checked all my files and they were uploaded using WS FTP Pro, which uploads all files in binary, except files which are in a list which includes PHP file extensions. So I guess the problem is in the script according to the hosts reply, but I doubt that this is the case. I can see from other members who have posted in this thread that they have had some gliches but seemed to have overcome those problems.

     

    I am still stuck with the same problem, and am seriously thinking of giving up unless I can get some help to trace the problem, Hosts don't seem at all interested, so I guess this forum is my only source of help.

     

    Getting back to the problem, when I access my admin panel, and click Links Manager this is what I get.

     

    The page cannot be displayed

    There is a problem with the page you are trying to reach and it cannot be displayed.

     

    --------------------------------------------------------------------------------

     

    Please try the following:

     

    Open the ***.**.***.** home page, and then look for links to the information you want.

    Click the Refresh button, or try again later.

     

    Click Search to look for information on the Internet.

    You can also see a list of related sites.

     

     

    HTTP 500 - Internal server error

    Internet Explorer

     

    I have checked, double checked and triple checked all my file additions and file edits, but still have the same error. I have changed the file permissions to 755 and still not good, so I changed them back to 644.

     

    Any other suggestions from anyone ?

     

    Cheers

     

    Viper

  10. Hi again Jack

    Thank you for your detailed reply, I haven't had time to call my host yet but I will first thing in the morning and hopefully they can clarify things for me.

     

    I will post here if I find out what the problem is, for the benefit of other members who may have similar problems.

     

    regards

     

    Viper

     

    Hi again

     

    This is an update, I emailed and called my host again, and got the standard response apart from a couple of clues.

     

    This was their response and btw, they didn't return my call.

     

    Hello

     

    If you have installed additional add-on's onto the Oscommerce we do not support

    this. But you need to make sure you have:

     

    1) Uploaded in ASCII format and not in "Binary"

     

    2) The permissions are set correctly to 755

     

    3) and if those two are correct then there is an issue with the script itself.

     

    Actually, my links manager files are all set by default to 644, so I will change them all to 755 and see if that makes a difference. Then I will check if my files were uploaded in ASCII format, but, how would I check that. Is there a way to find out ? I use WS FTP. I am pretty sure this auto detects which format to upload in.

     

    If anyone has any clues please let me know.

     

    Cheers

     

    Viper

  11. The 500 error can indicate a number of different things. It is a "catch-all" error that is displayed when some error occurs that doesn't have a specific error page. For example, it can be a security violation (or a perceived one) or a resource limit violation. But whatever it is, it is a problem only your host can resolve since the log of the failure is only available to them, in most cases. So they are the only ones that can help you. You could try removing parts of the code in Links Manager until the problem goes away to find the code causing the problem. But even if oyu found it, you would probabl still need your hosts support to fix it.

     

    Jack

     

    Hi again Jack

    Thank you for your detailed reply, I haven't had time to call my host yet but I will first thing in the morning and hopefully they can clarify things for me.

     

    I will post here if I find out what the problem is, for the benefit of other members who may have similar problems.

     

    regards

     

    Viper

  12. OK, I misunderstood your post before. If the rest of admin is working, then there must be some setting on your server that is failing due to the code in Links Manager. So you will need to contact your host and ask them why it is failing.

     

    Jack

     

    Hi Jack

     

    Thanks for your reply, I will give my host a try, but doubt that they would be able to assist. On previous attempts for for their assistance (at least 7 times) for various unrelated matters, I was basically left to my own devices to solve the problem. They were of no assistance at all, and I will be changing over host's when my contract expires. One of my first questions to them was about protecting the admin folder via their cpanel, their response was "We do not provide support for osCommerce", so basically I had to work out my own way to do it. no thanks to them. Mind you, they do install osCommerce for their customers for a price, so I guess their reasons were financial.

     

    Anyway, getting back to the point here, I am surprised that no-one has come across this problem yet, I suspect that it may be a database problem but I am not real sure how to go about tracking where the problem lies.

     

    Any other ideas ? If anyone would like to take a shot at this I would be grateful. In the meantime, I will give my hosts another call (don't like my chances) and see if I can get even a snippet of info from them.

     

    Cheers

     

    Viper

  13. Did you create at least one category?

     

    Jack

     

    Hi Jack

     

    I am not sure what you mean, but I don't have any options in Links Manager via my admin to create any categories or links. When I click on Links Manager in Admin, I get taken to the server error 500 so I cannot actually create any categories. Apart from not being able to access Links Manager in Admin, everything else seems ok. In Admin > Configuration > links, everything is fine but as I said above in Admin > Link Manager there are no options to set and it throws the error 500 page. Hope this helps clarify Jack, if you need any more info, Post here and I should be around the forums checking out other posts in other threads.

     

    cheers

     

    Viper

  14. Hi

     

    I have recently installed Links Manager 1.10 and have searched the forums for the answer to my question, but so far no luck.

     

    The problem I have is basically, when I click on Link Manager in Admin, I get an error 500 page. Everything seems to be installed correctly and links diplays correctly except that when I click on links on the main page, it tells me that "there are no categories yet" or similar text. Also, if I try to add a link, where the field is to fill in the category, is only 1 character wide and blank. So, it seems as if I am having some sort of a database error or a file permissions error but I am not sure where exactly my problem lies.

     

    I would be grateful for any guidance on this problem, does anyone have any ideas for a fix ?

     

    cheers

     

    Viper

×
×
  • Create New...