Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Philo2005

Members
  • Posts

    205
  • Joined

  • Last visited

Posts posted by Philo2005

  1. 4 hours ago, Jack_mcs said:

    Looks good. As long as the map files are created and are correct, you should be all set.

    You may add this statement to your version, cron jobs will not always take over the directory settings according the online requests.
    So for me the script works fine with Phoenix 1 0 7 10 without errors and warnings.

  2. I found out why the warnings comes up.

    I renamed the index.php file to gsm_prc.php.
    I adjusted the configuration table setting for 'GOOGLE_XML_SITEMAP_CREATE_NOW' to the new name of the script.

    (This because there is already an index.php file on Phoenix root directory which could be a problem.)

    The cron job could not attach the include files correctly because of wrong directory settings by the cron job itself.
    I therefore set the directory setting to the actual of the script.php when not running a browser online request.

    Here I have a proposal of how this could be solved:
     

    //  set correct working directory for crown job
    //  and select main directory for all
    //  ------------------------------------------------------------
    //    chdir('/home/user/web/domain.com/public_html/catalog/googlesitemaps/');
        if (! isset($_SERVER['HTTP_USER_AGENT'])) { // cron job
                    chdir(__DIR__ . '/');
        }
        chdir('../');

    What do you think?

     

  3. well,  the online version runs without notice and works correct, so if the cron job fails, i will run the online version afterwards to make sure, the sitemaps file will be generated properly.
    Anyway if I find something, i will let you know.

    thanks for helping.

  4. PHP Notice:  Undefined index: SCRIPT_NAME in /home/www/web587/html/ishop/includes/system/segments/application/request.php on line 17
    X-Powered-By: PHP/7.1.1

    still same notification 😞

    i added some echo commands to dump some variables on the index.php file for tomorrows run at night.
    These should be shown in the generated mail confirmation.
     

     

  5. 15 hours ago, Jack_mcs said:

    That's not part of this addon. It might be caused by something in the addon but without being able to duplicate it, I can't trace it. But it is saying that $_SERVER['SCRIPT_NAME'] is not set and that is correct when running from a cron job so please see if this will fix it. In the index.php file, find this code

    
        if (isset($_SERVER['REMOTE_ADDR']) && ! in_array($_SERVER['REMOTE_ADDR'], $safe_ips)) {
            header("location:http:127.0.0.1");
         }
         

    and replace it with this

    
         if (isset($_SERVER['REMOTE_ADDR'])) {
            if (! in_array($_SERVER['REMOTE_ADDR'], $safe_ips)) {
              header("location:http:127.0.0.1");
            }  
         } else {
            $_SERVER['REMOTE_ADDR'] = $safe_ips[0];
         } 

    Be sure to enter your IP in the secure setting in admin for this addon.

    okay i will try on tonight's cron job.

  6. 13 hours ago, Philo2005 said:
    
    PHP Notice:  Undefined index: SCRIPT_NAME in /home/www/web587/html/ishop/includes/system/segments/application/request.php on line 17
    X-Powered-By: PHP/7.1.1

     

    Additional information:
    This message is shown only when running the cron job, when doing online creation this message is not shown.
    I found out that IP address of my cron job is 0.

  7. On 10/31/2020 at 5:56 PM, Jack_mcs said:

    The attached is the file from the latest, unreleased, version. It should fix the last two and maybe the first. But I can't cause the first to occur so I can't say for sure.

    index.php

    PHP Notice:  Undefined index: SCRIPT_NAME in /home/www/web587/html/ishop/includes/system/segments/application/request.php on line 17
    X-Powered-By: PHP/7.1.1

    The last 2 errors are gone, thank you.
    The first message stays, attached the file of request.php of version 1 0 7 9.
    The following statement (line 17) in request.php generates the message:
    $PHP_SELF = substr(parse_url($_SERVER['SCRIPT_NAME'])['path'], strlen(DIR_WS_CATALOG));

    Any idea?

    request.php

  8. Google XML Sitemap SEO - 1 0 7 9
     

    Using the addon Google XML Sitemap SEO)  (https://apps.oscommerce.com/QN8hJ&google-xml-sitemap-seo)

    I am getting some error message when running a cron job on php 7.1.1 of attached googlesitemap/index.php: 

    PHP Notice:  Undefined index: SCRIPT_NAME in /home/www/web587/html/ishop/includes/system/segments/application/request.php on line 17
    PHP Notice:  Undefined index: REMOTE_ADDR in /home/www/web587/html/ishop/googlesitemap/index.php on line 49
    PHP Notice:  Undefined index: SCRIPT_FILENAME in /home/www/web587/html/ishop/googlesitemap/index.php on line 186
    Status: 302 Found
    X-Powered-By: PHP/7.1.1

     

     

    Somebody can help me?

    index.php

  9. 1 hour ago, Jack_mcs said:

    Did you make the database changes with the google_xml_sitemap_seo_install.php file? If so, it has a delete button. Did you not see that? I would think that button is more obvious than text in the install file. If the button is ignored then the text would be too, most likely.

    Yes you got me 😝 but all works fine 😎

  10. 1 hour ago, Jack_mcs said:

    @Philo20051 - Yes, that file should be deleted. You should have seen a button to delete it when you ran the file.

    2 - Unfortunately, it does not create multiple language map files. There's a way to do it manually but it requires editing files. If that was a one-time thing then it would be Ok for a temp solution. But this addon should be ran frequently so that is not a good solution. I've added this to things to do for the next version but it will not be completed anytime soon.

    @Jack_mcs

    Thanks for the fast respond!

    1 - okay i deleted the file manually, maybe this should be mentioned at the end of point 3) in the "readme.txt"  file of the add on.

    2 - okay thank you for adding it to you to do list, this seems important to me to be present on google in more than one language .

    Have a nice day 🙂

  11. @Jack_mcs

    Your add on works fine to me, thank you for developing it.

    I have some questions to the add on:

    1. After first time installation, can i remove google_xml_sitemap_seo_install.php from the root directory or is it still required?
    2. I have set up 2 languages in my shop, German (default) and English.
        a) Is this add on supporting multi lingual or just one language? 
        b) if only one language is supported, how do I tell google by the "xml files" my English description links eq parameters ?language=de or ?language=en?
            The description of articles, categories and manufactures in my shop are different in german and english!

    Thanks for responding

     

  12. On 9/21/2019 at 4:07 PM, milerwan said:

    I have just uploaded at the moment (2 times by mistake ^^) my module.
    Here are the links :

    - https://apps.oscommerce.com/6aWHK&paypal-fee-v2

    - https://apps.oscommerce.com/Uyola&paypal-fee-v2

    @milerwan

    Hi milerwan

    1. Having Problems installing your PayPal fee v2 with OSCOM CE Phoenix v1.0.2.5 and PHP Version 7.1.1 and mysqlnd 5.0.12
    SQL Syntax Error on Insert (last line) about your comment in the SQL statement, did change it to the following:
    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added)
    values ('Ordre de tri', 'MODULE_ORDER_TOTAL_PAYPAL_SORT_ORDER', '4', 'Ordre de tri', '6', '5', now())");

    --> removed ( ) from comments !!!

    2. This module works fine now with "PayPal Payments Standard" on my installation (Maybe you should mention this in your installation guide)
        but it did not work with "PayPal Express Checkout" before.

        For this I had to find "PDT Identity Token" on Swiss PayPal side after 2 Hours Research, i dont know anymore, where it was

    Thanks for writing it! 
    I am going to charge the custumer in future if he pays with PayPal . In Switzerland this is allowed!

  13. 3 hours ago, BrockleyJohn said:

    If I remember right, you've installed a download of CE Phoenix, in which case you already have this file.

    If you are just asking because you're getting a fail in the SSL test in the paypal app admin settings, don't worry about it. The SSL test doesn't work any more for anyone and a fail doesn't give you any information about your store.

    Yes I did install CE Phoenix … Yes the SSL test failed, so I dont have to worry anymore … 
    It just confuses me, why this is still implemented.

×
×
  • Create New...