Jump to content

sinopia

Members
  • Content count

    171
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

1,837 profile views
  1. sinopia

    PayPal App for osCommerce Online Merchant

    By the way order_confirm.php is send mails using PHPMailer. The line 17 is: for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { I've added this before because I weren't recognizing order variable: // Fix for paypal_standard.php - $order_id and checkout_process.php uses $insert_id if (strpos($order->info['payment_method'], 'PayPal') !== false) { $insert_id = $order_id; } Is someone has this issues or could know what can be causing this I would really appreciate any help. Also what is going on with session_destroy()? Should the application_top.php create or recreate and application_bottom.php destroy? Line 162 is: return session_destroy(); // from function tep_session_destroy() { Best regards.
  2. sinopia

    PayPal App for osCommerce Online Merchant

    Hello. I've seeing this at error_log: [10-Nov-2019 18:41:29 Europe/Lisbon] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/x/public_html/includes/modules/mail_manager/order_confirm.php on line 17 [10-Nov-2019 18:41:29 Europe/Lisbon] PHP Warning: session_destroy(): Trying to destroy uninitialized session in /home/x/public_html/includes/functions/sessions.php on line 162 I'm using the last app from paypal. This seems to happen in checkout_success.php while GET request from paypal.com/webapps... Checked at logs and it was at the same exact time. Using PHP 7.3, I'm aware that sizeof could get some warning in PHP7.3 and saw that in some cases count() should be used. Sometimes paypal recreate a new order id, I'm not sure if this happens in all osCommerce stores but in my case some paypal orders became +1 (order 1234 will become 1235 for example). Could it accessing the old order variable and as it doesn't exists cause this warning? Best regards.
  3. sinopia

    ezsocial login sessions problems

    Replace the function to use openssl_encrypt/decrypt instead of mcrypt and seems everything to work. If anyone need to substitute pm me. Will check now if the warning about sessions keep showing.
  4. sinopia

    ezsocial login sessions problems

    Seems that the files login_with_facebook.php and others had twice application_top.php requires.. Only requires if ($success), so disabled that and put it on the top, seems to fix it. Now got this: Fatal error: Uncaught Error: Call to undefined function mcrypt_get_block_size() in /home/x/public_html/oauth/functions.php:14 Stack trace: #0 /home/x/public_html/login_with_facebook.php(113): mc_encrypt('ezsocial|262058...', 'c8e0c24452f4178...') #1 {main} thrown in /home/x/public_html/oauth/functions.php on line 14 Will try to change the functions from ezsocial to use openssl. As it's not a good idea to compile mcrypt as it's deprecated.
  5. sinopia

    ezsocial login sessions problems

    Added require('includes/application_top.php'); and seems to fixed the sessions issues.. now I got: Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /home/x/public_html/includes/functions/compatibility.php:18) in /home/x/public_html/includes/functions/compatibility.php on line 29 Mine compatibility.php is the same as this: https://github.com/gburton/CE-Phoenix/blob/master/includes/functions/compatibility.php I'll check if it's active on cPanel.. Another issue related with sessions.. at database I got 622940 records, it seems that is logging some session records.. Should it not removed as customers logout or the session expires?
  6. Hello I've upgraded into 7.3 and seems to be all ok, I got a 2.3.4 template but I've been updating some code from CE-Phoenix some functions and code to be recent (a lot core modifications that would require a lot to upgrade all to CE-Phoenix) But while login with facebook/google/etc with ezsocial login I'm getting this warnings: Warning: session_set_save_handler(): Cannot change save handler when session is active in /home/x/public_html/includes/functions/sessions.php on line 65 Warning: session_name(): Cannot change session name when session is active in /home/x/public_html/includes/functions/sessions.php on line 142 Warning: session_save_path(): Cannot change save path when session is active in /home/x/public_html/includes/functions/sessions.php on line 167 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/x/public_html/includes/application_top.php on line 172 Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "navigationHistory" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/x/public_html/includes/application_top.php on line 348 The normal sessions like login/login seems to work fine and keeps the products etc. It's just while trying to login with facebook for example. Should the files login_with_facebook.php missing application_top for the sessions part? I've getting more warnings and errors like: [29-Oct-2019 10:16:58 Europe/Lisbon] PHP Warning: session_destroy(): Trying to destroy uninitialized session in /home/x/public_html/includes/functions/sessions.php on line 149 [29-Oct-2019 10:27:19 Europe/Lisbon] PHP Warning: session_set_save_handler(): Cannot change save handler when session is active in /home/x/public_html/includes/functions/sessions.php on line 65 [29-Oct-2019 10:27:19 Europe/Lisbon] PHP Warning: session_name(): Cannot change session name when session is active in /home/x/public_html/includes/functions/sessions.php on line 142 [29-Oct-2019 10:27:19 Europe/Lisbon] PHP Warning: session_save_path(): Cannot change save path when session is active in /home/x/public_html/includes/functions/sessions.php on line 167 [29-Oct-2019 10:27:19 Europe/Lisbon] PHP Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/x/public_html/includes/application_top.php on line 177 [29-Oct-2019 10:27:19 Europe/Lisbon] PHP Fatal error: Uncaught Error: Call to undefined function mcrypt_get_block_size() in /home/x/public_html/oauth/functions.php:14 Stack trace: #0 /home/x/public_html/login_with_facebook.php(113): mc_encrypt('ezsocial|262......', 'c8e0...........') #1 {main} thrown in /home/x/public_html/oauth/functions.php on line 14 [29-Oct-2019 10:46:33 Europe/Lisbon] PHP Warning: session_start(): Failed to decode session object. Session has been destroyed in /home/x/public_html/includes/functions/sessions.php on line 106 [29-Oct-2019 10:46:38 Europe/Lisbon] PHP Warning: session_start(): Failed to decode session object. Session has been destroyed in /home/x/public_html/includes/functions/sessions.php on line 106 [29-Oct-2019 10:49:59 Europe/Lisbon] PHP Warning: session_start(): Failed to decode session object. Session has been destroyed in /home/x/public_html/includes/functions/sessions.php on line 106 [29-Oct-2019 10:50:03 Europe/Lisbon] PHP Warning: session_start(): Failed to decode session object. Session has been destroyed in /home/x/public_html/includes/functions/sessions.php on line 106 [29-Oct-2019 10:55:24 Europe/Lisbon] PHP Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /home/x/public_html/includes/application_top.php on line 334 Seems that mcrypt is deprecated since PHP 7.1.. and to use openssl instead, but it's also possible to use mcrypt it but not recommended. But should that been causing this issue with sessions? Best regards
  7. sinopia

    SEO Friendly Urls - a new approach

    Hi @gadlol thank you for your quickly answer. I'll send you a message right now. About the alias something like define for multiple language (I guess it's possible to do it). Example: mystore.com/specials mystore.com/es/especiales mystore.com/pt/especiais All for specials.php file.
  8. sinopia

    SEO Friendly Urls - a new approach

    Hi @gadlol Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/xxx/public_html/includes/classes/seo_friendly_urls.php on line 380 while ( $loop && ( ( $option = each( $children[$parent] ) ) || ( $parent > $root_id ) ) ){ What is the best approach to replace the each? Versions from 7.0 get that warning.. Really wanted to upgrade PHP to the new version. Also for the alias pages is there any way to add a functionality for multilingual alias? Best regards
  9. Hi everyone, I've now two languages in our website and it uses a ccTLD, should I use hreflang? I guess it's hard because the domain is for specific country. I'm asking this because Google can detect as duplicated content and penalize the website. I used website/category/product-1 for default language which is the domain country and english but I've disabled the slug SEO /en/ for example. Also haven't add anything at webmaster like sitemap and international segment... If someone could give a advice I would really appreciate the help. Also, I've been searching some addon to set products from only specific countries/language but didn't find anything, anyone knows any? Just to set some checkbox at admin/categories.php in the product like: language1 language2. I tried to remove the products name for that languages but it keeps showing at product listings.. maybe some bug? By the way, I know reviews should be for specific language but is there a way to show them all? I'm wondering set a little script that if needed ask's for translation though an API. As I've set a new language is normal that there's no reviews and this way should give more reliability to buy.
  10. sinopia

    PayPal App for osCommerce Online Merchant

    @BrockleyJohn but which one? if ( $result == 'VERIFIED' ) { or function verifyTransaction? I think it's accessed twice from standard_ipn.php and paypal_standard..
  11. sinopia

    PayPal App for osCommerce Online Merchant

    Something like a callback, so when the paypal payment is confirmed, I send a cURL request with the invoice to my e-printer.
  12. sinopia

    PayPal App for osCommerce Online Merchant

    Well, I suppose it's on standard_ipn.php at if ( $result == 'VERIFIED' ) {
  13. sinopia

    PayPal App for osCommerce Online Merchant

    Hello, I need to locate the correct function in file that really confirms that the payment is confirmed. /modules/payment/paypal_standard.php: function verifyTransaction($pptx_params, $is_ipn = false) { Is this enough? After the tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array); ? Best regards
  14. Anyone knows a simple way to change the price in any class/module? As there's no plan to add a functionality like this, I would appreciate if someone could give me some hints do make something manually like: if product has X attribute selected gets 20% discounts on that product without messing with the order total or something else. Something that wouldn't require a lot of code to discount code bs or a bulk price change on the database? I would appreciate any help. Best regards.
  15. Hi, I understand. Not for me but for your addon that would be a good functionallity, in case you've a attribute in stock and want to make a promotion in all products in your store. Also I was thinking about a workaround, I create a coupon for all products (individually - some bulk creation in the database), and at the checkout_payment (where customers input the coupon) check the products attributes if it has the attribute I need and insert it automatically but it's not possible to insert two or more discount codes. So probably I'll do a bulk price change for that attribute, but the issue is that some products have different prices.. Instead of something like 30%, I discount a fixed price. Best regards.
×