Jump to content

altoid

♥Ambassador
  • Content count

    1,567
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by altoid

  1. Hi Jack, I am today getting around to this. I just made the change you suggested. I'll monitor the error log for a few days and get back to you. But I wanted to mention a couple of things. The error log only showed this warning on one day, 12 Sept. Why not before and after I don't know. Secondly, then on 13 Sept I see several PHP notices for this same file. Only on that day, not before or after. I don't want to mix issues so I'll list those notices in a separate post once we see what happens over the next few days with issue one. Thx
  2. I do not have header tags seo installed. regarding extensions, my server into page has a lot of info, what specifically were you interested in?
  3. Running this on CE with php 7.2. Shopside showing seo urls. No shop admin side issues In the error log I see: PHP Warning: Use of undefined constant CHARSET - assumed 'CHARSET' (this will throw an Error in a future version of PHP) in /home/UserName/public_html/includes/classes/seo.class.php on line 1834 That code is: function strip($string){ if (CHARSET == 'utf-8') { $string = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $string); }
  4. This add on looks to be working with the CE version of responsive osCommerce and running php 7.2, meaning orders are being processed with USPS postage as shipping. I've already made some changes to pertinent files as per previous suggestions to deal with errors in the log. A few issue still linger if anyone could help. There's a couple notices and one warning as follows. I am pasting the block of code around the error not just the line..... PHP Notice: Undefined index: Package in /home/barkav5/public_html/includes/modules/shipping/usps.php on line 424 if (isset ($response_array['Package']['Postage']) && tep_not_null($response_array['Package']['Postage'])) { $service = $response_array['Package']['Postage']['MailService']; $temp_service = preg_replace( $pattern, '', $service ); $response_array['Package']['Postage']['MailService'] = preg_replace( '/\s+/', ' ', $temp_service ); $response_array['Package']['Postage']['DeliveryDays'] = $this->get_delivery_days( $pattern, $service ); } elseif (is_array($response_array['Package'])) { THIS IS LINE 424 // Step through all of the quotes $count_services = count( $response_array['Package'] ); for( $index=0; $index<$count_services; $index++ ) { $service = $response_array['Package'][$index]['Postage']['MailService']; PHP Notice: Undefined property: usps::$quotes in /home/barkav5/public_html/includes/classes/shipping.php on line 94 foreach($this->modules as $value) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $quotes = $GLOBALS[$class]->quotes; THIS IS LINE 94 for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) { if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) { $rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'], 'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')', 'cost' => $quotes['methods'][$i]['cost']); PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/barkav5/public_html/includes/classes/shipping.php on line 95 foreach($this->modules as $value) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $quotes = $GLOBALS[$class]->quotes; for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) { THIS IS LINE 95 if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) { $rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'], 'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')', 'cost' => $quotes['methods'][$i]['cost']); If these are taken care of I'll try to figure out how to upload the CE / PHP 7.2 updates so others can benefit.
  5. altoid

    Google XML Sitemap SEO

    Latest version working fine. Thanks. 👍
  6. altoid

    Google XML Sitemap SEO

    As the sage and all knowing Forest Gump once said...S&%# Happens. 😀
  7. altoid

    Google XML Sitemap SEO

    Hi Jack....downloading package oscom-google-xml-sitemap-seo-QN8hJ-XvqMV from https://apps.oscommerce.com/QN8hJ&amp;google-xml-sitemap-seo In \oscom-google-xml-sitemap-seo-QN8hJ-XvqMV\catalog\googlesitemap\index.php I see starting on 47 thru 51 require_once('includes/configure.php'); require_once(DIR_WS_INCLUDES . 'filenames.php'); require_once(DIR_WS_INCLUDES . 'database_tables.php'); require_once(DIR_WS_FUNCTIONS . 'database.php'); tep_db_connect() or die('Unable to connect to database server!');
  8. altoid

    Google XML Sitemap SEO

    Jack, these errors must have appeared while I was following your instructions to troubleshoot..and may help. [07-Sep-2018 19:06:30 UTC] PHP Warning: Use of undefined constant DIR_WS_HTTP_CATALOG - assumed 'DIR_WS_HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /home/MyUserName/public_html/googlesitemap/index.php on line 45 [07-Sep-2018 19:06:30 UTC] PHP Warning: Use of undefined constant DIR_WS_INCLUDES - assumed 'DIR_WS_INCLUDES' (this will throw an Error in a future version of PHP) in /home/MyUserName/public_html/googlesitemap/index.php on line 48 [07-Sep-2018 19:06:30 UTC] PHP Warning: require_once(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/MyUserName/public_html/googlesitemap/index.php on line 48 [07-Sep-2018 19:06:30 UTC] PHP Fatal error: require_once(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/MyUserName/public_html/googlesitemap/index.php on line 48
  9. Got this error...but added an ) at the end as so and it seems OK PHP Parse error: syntax error, unexpected ';' in /home/barkav5/public_html/includes/classes/seo.class.php on line 2626 $page = (! (isset($page) && tep_not_null($page) ?: basename($_SERVER['SCRIPT_NAME']))); Checking error log, I don't see any more for this issue after the update. So looks goo on that. Thank you
  10. altoid

    Google XML Sitemap SEO

    Manually running... Looks like it starts at line 48 require_once(DIR_WS_INCLUDES . 'filenames.php');
  11. In checking my error log I find this: PHP Notice: Undefined variable: page in /home/barkav5/public_html/includes/classes/seo.class.php on line 2626 the lines 2626-2628 show $url = $this->make_url($page, $this ->get_category_name($actualID), 'cPath', $fullID, '.html');
  12. altoid

    Google XML Sitemap SEO

    Hi Jack, sorry for the confusion. What I am reporting is related to just the cron url only https://www.mydomain.com/googlesitemap/index.php Please note for the purposes here, I have changed the domain name. When running that url 1 in Chrome I get this error message This page isn’t working www.mydomain.com is currently unable to handle this request. HTTP ERROR 500 2 in FF I get a blank white page for the cron. 3 in IE I get a blank white page for the cron. Accordingly then, the sitemap pages, all set to 0755 are empty after running the cron. When in contact with my host support, after much back and forth they conclude the issue is not a server problem. They said it's a PHP problem. To make their point, they changed the /googlesitemap/index.php file to just plain text and ran it. It displayed just text properly. They said that means the problem is not a server issue but a php issue. Whether that's accurate, I don't know. But that's what they said. However, I do have an php error log, and I see nothing in it related to running the above url.
  13. altoid

    Google XML Sitemap SEO

    Jack, I was on with the support guy for a while, he took the matter to tier 2 support. After all that, they conclude it's not the server. for the googlesitemap/index.php file they simply replaced the code with plain text to see if the file would show..and it does....says "Test Page". This is for: https://www.mydomain dot com/googlesitemap/index.php My cron email came back this AM with this info: Status: 500 Internal Server Error X-Powered-By: PHP/7.0.31 Set-Cookie: osCsid=e49acaa263514efa79d54d19f37461fe; path=/; domain=.mydomain.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Vary: Accept-Encoding Content-type: text/html; charset=utf-8 Here's part of the cron email from two days ago..showing things working. X-Powered-By: PHP/7.0.31 Set-Cookie: osCsid=a3151e4d0fae5141117ac8a54641f89f; path=/; domain=.mydomain.com Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Vary: Accept-Encoding Content-type: text/html; charset=utf-8 <style>.red { color:red; } </style> <pre><span class="red"><strong>CONGRATULATIONS! All files generated successfully.</strong></span> ....................... I've tried the most current version, and then I've tried the version just before that I had installed for a while. The only other store modifications I have made during the past couple days is to install some modules (that don't affect the core code) and Ultimate SEO Urls. So anyway...all just FYI and for now I'll give this a rest and come back to it later. Thanks for your time. SK
  14. John, I updated the code and ran an error check. All's good now. Thank you
  15. altoid

    Google XML Sitemap SEO

    I have a support ticket into my host company about the server error 500 on this matter. We'll see what they come up with. This is for url: https://www dot myshop dot com/googlesitemap/index.php
  16. altoid

    Google XML Sitemap SEO

    I tried again today, even after cleaning up some php related issues, it still won't work. I'm going to give this a rest and look at what I may have done in the shop to cause this and then give it another go. Thanks
  17. Hi Jack, running php 7.2.8 here and in the error checking mode I see this: Notice: Undefined variable: seo_urls in /home/barkav5/public_html/includes/application_top.php on line 295 Line 295 is: if ( !is_object($seo_urls) ){ Any suggestions?
  18. altoid

    Google XML Sitemap SEO

    Jack, it was the sitemap url. I've uninstalled for now and will try a couple things tomorrow and see how it goes.
  19. altoid

    Google XML Sitemap SEO

    Jack, I forgot to mention that the 500 error was on Chrome. Testing on Firefox, I just get a blank white page.
  20. altoid

    Google XML Sitemap SEO

    Thanks for the info...I had this working up to today, but not I get this error This page isn’t working www.mysite.com is currently unable to handle this request. HTTP ERROR 500 Switched to alternate sitemap file...same error enabled diagnostics and upon doing so, when running I just get the same error as above. On my cPanel, looking under meters and the errors generated by the server, I do not see any error related to this. I did install today's ultimate seo urls and that is working fine. Thanks
  21. altoid

    Google XML Sitemap SEO

    I have the previous version installed on a CE shop. To upgrade, is it simply to replace the files in catalog or...? Thank you
  22. altoid

    QTPro BS

    Found something interesting going on during the c/p process. Using winmerge and checking the files I observed many strange characters in what I copied and pasted. They were not visible in Notepad+. Only in Winmerge. I shut down and restarted Notepad+, tried again and this time those characters were not there. Never saw anything like that before. Anyway, uploaded.tested and ...error message resolved now👍
  23. altoid

    QTPro BS

    After making the change for line 62 I get this error: Parse error: syntax error, unexpected '$products_name' (T_VARIABLE) in /home/Username/public_html/includes/modules/content/shopping_cart/cm_sc_product_listing_qtpro.php on line 63
  24. altoid

    QTPro BS

    With error reporting set to all I see this error Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/barkav5/public_html/includes/modules/content/shopping_cart/cm_sc_product_listing_qtpro.php on line 62 Running php 7.2.7
  25. Another....running php 7.2.7 With error reporting set to development level "all" I got this error message: Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; usps has a deprecated constructor in /home/barkav5/public_html/includes/modules/shipping/usps.php on line 18 Changing line 25 from function usps() { to function __construct() { seems to have dealt with that issue. Error message is gone.
×