-
Posts
205 -
Joined
-
Last visited
Posts posted by Philo2005
-
-
How much time is "86400" in years, month, days?
-
Finally i got the new version working, but i must say your help was not very useful!
But the module is great! -
-
-
I downloaded store mode version 1 0 4 0 and in the root directory of the download is a file called storeMode.php (same directory as Documentation.pdf is).
Is this correct and where should it go correctly ? -
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. -
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?
-
On 11/4/2020 at 4:31 PM, Jack_mcs said:
To be clear, the warning you are seeing is not fatal so the cron job should complete. Have you checked the sitemaps after the cron job runs to see if they are updated?
yes it is just a warning.
-
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.
-
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.
-
okay Jack, thank you, i have copied file to production after i had a look to it, well in a few hours i will know more.
-
-
7 hours ago, Philo2005 said:
okay i will try on tonight's cron job.
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 the same message appears!
-
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.
-
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. -
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.
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 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?
-
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?
-
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 😎
-
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.
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 🙂 -
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 -
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 :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! -
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. -
How do I install/update this file cacert.pem ?
Database Optimizer
in General Add-Ons Support
Posted
Great tool Jack, exactly what I was looking for!
I miss only reorganization of the working files such as:
- action_recorder
- oscom_app_paypal_log
Will these files be included in the procedure at some point?