Jump to content

Omar_one

Members
  • Content count

    562
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by Omar_one


  1. Hello @Jack_mcs
    I have view-counter v1.8 installed on Frozen today I get error on the admin side 
     

    1213 - Deadlock found when trying to get lock; try restarting transaction
    
     update view_counter set view_count = 5, ip_active=1, last_date = now() where file_name = 'edit_orders_add_product.php' and arg = 'oID=24126&action=add_product' and language_id = 4 and ip_number = INET_ATON('XX.XX.XXX.XXX' ) and session_id = '6f18e74135e1d2eef63e03c199ea109f'

    INET_ATON('XX.XX.XXX.XXX' ) was admin IP address I just change it before I post here

    and this one 
     

    1213 - Deadlock found when trying to get lock; try restarting transaction
    
    delete from view_counter where last_date < '2022-03-11 23:59:59'

     I am not sure why I get this errors,
     I appreciate your help
    Omar


  2. 10 minutes ago, BrockleyJohn said:

    @Omar_one

    Yes, I do intend to update asap (plan would be putting it a bit strongly 🙂

    I have just had to send my dev machine off under warranty as it's making a horrible grinding noise so have just lost a week's productivity and am wading through a backlog of communications and trying to claw back progress on jobs.

    I'll be aiming for 1.0.8.0 but the chances are it should work on 7.18 too

    In the short term you can suppress notices and deprecated.

    @bigplusmart I think I've had it working on  7.14 but can't swear to it. Assuming you've a white page, turn on display errors and report back exactly what the issue is:

    
    ini_set('display_errors', 1);

    in admin/includes/application_top.php

    Thank you,
    it was 1.0.8.0  sorry i


  3. On 3/7/2021 at 11:16 PM, Omar_one said:

    @BrockleyJohn


    Thank you for updating  order editor module.. I think it not update yet  1.0.7.18.
    I just install it on 1.0.7.18 and  the edit order page not working its give HTTP ERROR 500 

    
    PHP Warning:  require(includes/classes/currencies.php): failed to open stream: No such file or directory in /home/test/public_html/shop/admin/edit_orders.php on line 153

    deleting the line from the edit_order.php and from edit_orders_add_product.php will fix the issue

    
    require(DIR_WS_CLASSES . 'currencies.php');

     

    and there is still the old tep_get_uprid  function still used in admin/order_editor/cart.php , admin/order_editor/order.php

    
    PHP Deprecated:  The tep_get_uprid function has been deprecated. in /home/test/public_html/shop/admin/includes/functions/general.php on line 362

     

      and there is an error 

    
    PHP Notice:  Undefined index: shipping_same_as_billing in /home/test/public_html/shop/admin/order_editor/css.php on line 180
    PHP Notice:  Undefined index: shipping_same_as_billing in /home/test/public_html/shop/admin/order_editor/css.php on line 181
    PHP Notice:  Undefined index: billing_same_as_customer in /home/test/public_html/shop/admin/order_editor/css.php on line 183
    PHP Notice:  Undefined index: billing_same_as_customer in /home/test/public_html/shop/admin/order_editor/css.php on line 184

     and the lines from 180-187

    
    #shippingAddressEntry { visibility: <?php echo (($_SESSION['shipping_same_as_billing'] == 'on') ? 'hidden' : 'visible') ?>; display: 
    <?php echo (($_SESSION['shipping_same_as_billing'] == 'on') ? 'none' : 'table-row') ?>; }
    
    #billingAddressEntry { visibility: <?php echo (($_SESSION['billing_same_as_customer'] == 'on') ? 'hidden' : 'visible') ?>; display: 
    <?php echo (($_SESSION['billing_same_as_customer'] == 'on') ? 'none' : 'table-row') ?>; }
    
    
    --></style>

    and PHP Warning

    
    PHP Warning:  Use of undefined constant ICON_SUCCESS - assumed 'ICON_SUCCESS' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/order_editor/javascript.php on line 34
    PHP Warning:  Use of undefined constant ICON_SUCCESS - assumed 'ICON_SUCCESS' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/order_editor/javascript.php on line 44
    PHP Warning:  Use of undefined constant ICON_SUCCESS - assumed 'ICON_SUCCESS' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/order_editor/javascript.php on line 54
    PHP Warning:  Use of undefined constant ICON_TICK - assumed 'ICON_TICK' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/edit_orders.php on line 1996

     

    I think this lines need to be delete from edit_order.php  

    
        <td width="100%" valign="top">
        <table border="0" width="100%" cellspacing="1" cellpadding="1" class="columnLeft">
        </table>
        </td>


    Thank you!
    Omar

    any plan to update it to  1.0.7.18. or any fix  
    Thank you!
    Omar


  4. @BrockleyJohn


    Thank you for updating  order editor module.. I think it not update yet  1.0.7.18.
    I just install it on 1.0.7.18 and  the edit order page not working its give HTTP ERROR 500 

    PHP Warning:  require(includes/classes/currencies.php): failed to open stream: No such file or directory in /home/test/public_html/shop/admin/edit_orders.php on line 153

    deleting the line from the edit_order.php and from edit_orders_add_product.php will fix the issue

    require(DIR_WS_CLASSES . 'currencies.php');

     

    and there is still the old tep_get_uprid  function still used in admin/order_editor/cart.php , admin/order_editor/order.php

    PHP Deprecated:  The tep_get_uprid function has been deprecated. in /home/test/public_html/shop/admin/includes/functions/general.php on line 362

     

      and there is an error 

    PHP Notice:  Undefined index: shipping_same_as_billing in /home/test/public_html/shop/admin/order_editor/css.php on line 180
    PHP Notice:  Undefined index: shipping_same_as_billing in /home/test/public_html/shop/admin/order_editor/css.php on line 181
    PHP Notice:  Undefined index: billing_same_as_customer in /home/test/public_html/shop/admin/order_editor/css.php on line 183
    PHP Notice:  Undefined index: billing_same_as_customer in /home/test/public_html/shop/admin/order_editor/css.php on line 184

     and the lines from 180-187

    #shippingAddressEntry { visibility: <?php echo (($_SESSION['shipping_same_as_billing'] == 'on') ? 'hidden' : 'visible') ?>; display: 
    <?php echo (($_SESSION['shipping_same_as_billing'] == 'on') ? 'none' : 'table-row') ?>; }
    
    #billingAddressEntry { visibility: <?php echo (($_SESSION['billing_same_as_customer'] == 'on') ? 'hidden' : 'visible') ?>; display: 
    <?php echo (($_SESSION['billing_same_as_customer'] == 'on') ? 'none' : 'table-row') ?>; }
    
    
    --></style>

    and PHP Warning

    PHP Warning:  Use of undefined constant ICON_SUCCESS - assumed 'ICON_SUCCESS' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/order_editor/javascript.php on line 34
    PHP Warning:  Use of undefined constant ICON_SUCCESS - assumed 'ICON_SUCCESS' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/order_editor/javascript.php on line 44
    PHP Warning:  Use of undefined constant ICON_SUCCESS - assumed 'ICON_SUCCESS' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/order_editor/javascript.php on line 54
    PHP Warning:  Use of undefined constant ICON_TICK - assumed 'ICON_TICK' (this will throw an Error in a future version of PHP) in /home/test/public_html/shop/admin/edit_orders.php on line 1996

     

    I think this lines need to be delete from edit_order.php  

        <td width="100%" valign="top">
        <table border="0" width="100%" cellspacing="1" cellpadding="1" class="columnLeft">
        </table>
        </td>


    Thank you!
    Omar


  5. 9 minutes ago, piernas said:

    I've almost finished this app. Still want to make a couple of tweaks and add proper instructions but all seems to work well. I've attached it in case someone wants to test it.

    No core changes, tested with Phoenix 1.0.7.10. Just upload the files and go to admin->configuration->Ultimate Seo Urls and enable the app. Feedback will be appreciated.

    USU3_beta.zip

    Notice: Undefined index: languages_id in C:\xampp\htdocs\test1711\includes\classes\usu_init.php on line 21
    Notice: Undefined index: language in C:\xampp\htdocs\test1711\includes\classes\usu_init.php on line 22
    Notice: Undefined variable: current_code in C:\xampp\htdocs\test1711\includes\apps\ultimate_seo_urls\main\bootstrap.php on line 376

    the errors will disappear after refreshing the site ...
    there is core file will overwrite  ht_canonical.php , I think it was forgotten there as there is no changes in it (same as core file)

    well done 


  6. 22 hours ago, raiwa said:

    @Omar_one and others:

    There are some hardcoded instances of "products_options_sort_order" which need to be changed to "sort_order" in:

    - admin\attributeManager\classes\attributeManager.class.php
    - admin\attributeManager\classes\attributeManagerConfig.class.php

    and in /includes/modules/content/product_info/cm_pi_options_attributes


  7. 10 hours ago, BrockleyJohn said:

    Plan would be putting it over strongly - I have been thinking it could do with revisiting now for all the changes in checkout. It could probably do with a redesign now that there are hooks all over the place - and maybe for the newly abstracted shipping & payment modules.

    its will be good if it will be a hooks .
     

     

    10 hours ago, BrockleyJohn said:

    And of course a bootstrapped admin page.

    image.thumb.png.6add9b84c4ae520af7f1e80dca978a37.png

    its work well now .. one issue .. that I can't delete the records as you see there is not delete button.. I will check it again   ..I don't think its that important just delete  the the records via phpmyadmin


  8. 16 hours ago, ecartz said:
    
        if ( isset($trInfo->s2p_id) && ($s2p['s2p_id'] == $trInfo->s2p_id) ) {
          echo '              <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $trInfo->s2p_id . '&action=edit') . '\'">' . "\n";
          $icon = tep_image('images/icon_arrow_right.gif', '');
        } else {
          echo '              <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $s2p['s2p_id']) . '\'">' . "\n";
          $icon = '<a href="' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $s2p['s2p_id']) . '">' . tep_image('images/icon_info.gif', IMAGE_ICON_INFO) . '</a>';
        }

    That's replacing 112-116.  Then at 128

    
                    <td class="dataTableContent" align="right"><?= $icon ?>&nbsp;</td>

     

    thank you @ecartz 👍

     


  9. 7 minutes ago, ecartz said:
    
        if ((empty($_GET['s2p_id']) || ($_GET['s2p_id'] == $s2p['s2p_id'])) && (empty($trInfo)) && (!isset($_GET['action']) || (substr($_GET['action'], 0, 3) != 'new'))) {

     

    Thank you @ecartz that fix if but now I get  2 another error 

    Notice: Undefined variable: trInfo in C:\xampp\htdocs\test\admin\ship2pay.php on line 112

    line 103-117
     

    <?php
      $s2p_query_raw = "select s2p_id, shipment, payments_allowed, status from ship2pay";
      $s2p_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $s2p_query_raw, $s2p_query_numrows);
      $s2p_query = tep_db_query($s2p_query_raw);
      while ($s2p = tep_db_fetch_array($s2p_query)) {
    	if ((empty($_GET['s2p_id']) || ($_GET['s2p_id'] == $s2p['s2p_id'])) && (empty($trInfo)) && (!isset($_GET['action']) || (substr($_GET['action'], 0, 3) != 'new'))) {
          $trInfo = new objectInfo($s2p);
        }
    
        if ( (is_object($trInfo)) && ($s2p['s2p_id'] == $trInfo->s2p_id) ) {
          echo '              <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $trInfo->s2p_id . '&action=edit') . '\'">' . "\n";
        } else {
          echo '              <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $s2p['s2p_id']) . '\'">' . "\n";
        }
    ?>


    and 

    Notice: Undefined variable: trInfo in C:\xampp\htdocs\test\admin\ship2pay.php on line 128

    and here the lines 121-129
     

                    <?php
                          if ($s2p['status'] == '1') {
                            echo tep_image('images/icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . '&nbsp;&nbsp;<a href="' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $s2p['s2p_id'] . '&action=disable') . '">' . tep_image('images/icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>';
                          } else {
                            echo '<a href="' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $s2p['s2p_id'] . '&action=enable') . '">' . tep_image('images/icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a>&nbsp;&nbsp;' . tep_image('images/icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10);
                          }
                    ?></td>
                    <td class="dataTableContent" align="right"><?php if ( (is_object($trInfo)) && ($s2p['s2p_id'] == $trInfo->s2p_id) ) { echo tep_image('images/icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link('ship2pay.php', 'page=' . $_GET['page'] . '&s2p_id=' . $s2p['s2p_id']) . '">' . tep_image('images/icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
                  </tr>

     


  10. @BrockleyJohn    I installed it and there was errors I fixed all of them except this one on the admin 

    Notice: Undefined index: action in C:\xampp\htdocs\test\admin\ship2pay.php on line 108

     and here is the line (on just this line there was 4 errors... fixed  3 of them and still the last one " this line after the editing ")

        if (((empty($_GET['s2p_id'])) || (empty($_GET['s2p_id'] == $s2p['s2p_id']))) && (empty($trInfo)  && (substr($_GET['action'], 0, 3) != 'new'))) {

    here is the original line 

        if (((!$_GET['s2p_id']) || (@$_GET['s2p_id'] == $s2p['s2p_id'])) && (!$trInfo) && (substr($_GET['action'], 0, 3) != 'new')) {

     
    any idea  how to fix it ?

    Br
    Omar


  11. On 9/4/2020 at 2:44 PM, raiwa said:

    Points and Rewards 3.1.0 beta for Phoenix 1.0.7.8

    Version 3.1.0.

     - Updated for Phoenix 1.0.7.8+
     - No more core file modifications
     - Deprecated Header Tag Module and moved all configuration entries into Order Total Module
     - Merged all Shop Hooks into one SiteWide hook
     - Replaced checkout payment content module with form hook
     - Bootstrapped Admin pages
     - removed alternative info footer and box module and provided modified language files instead
     - moved the reviews point info message module to product info page
     - updated all modules to abstract_executable_module
     - updated coding to match Phoenix 1.0.7.8 standards
     - added product info pi system modules
     - Integrated PayPal Standard IPN support into siteWide hook

    Points and Rewards Phoenix 3.1.0_beta.zip

     

    This is a beta version for testing. There are many changes and it requires a complete new installation. Please use the latest Phoenix 1.0.7.8 from GitHub at least from Tuesday 2020/09/01.

    PayPal Standard requires some updates which are not yet available on GitHub.

    Modify includes/modules/payment/paypal_satndard.php line 178-179:

    
              require 'includes/system/segments/checkout/build_order_totals.php';
              require 'includes/system/segments/checkout/insert_order.php';

     

    Hello @raiwa ,, I am testing it on 1.0.7.8 and it show error when I go to  install the "Points" payment method module. (Modules -> Payment)
     

    Fatal error: Uncaught Error: Call to a member function show_total() on null in C:\xxxx\xxxx\shop\includes\modules\payment\points.php:69 Stack trace: #0 C:\xxxx\xxxx\shop\includes\system\versioned\1.0.7.8\abstract_zoneable_module.php(19): points->update_status() #1 C:\xxxx\xxxx\shop\includes\system\versioned\1.0.7.8\abstract_payment_module.php(16): abstract_zoneable_module->__construct() #2 C:\xxxx\xxxx\shop\includes\modules\payment\points.php(32): abstract_payment_module->__construct() #3 C:\xxxx\xxxx\shop\admin\modules.php(174): points->__construct() #4 {main} thrown in C:\\xxxx\xxxx\shop\includes\modules\payment\points.php on line 69

    and line 67-75  (points.php)
     

     if ($this->enabled == true) {
            $this->enabled = false;
            $cart_show_total = $cart->show_total();
            if ( tep_not_null($max_points = check_points_redemtion ($cart_show_total)) ) {
              if ($order->info['total'] <= tep_calc_shopping_pvalue($max_points)) {
                $this->enabled = true;
              }
            }
          }

     


  12. 8 hours ago, Jack_mcs said:

    No, it isn't. But I have a version that is about 90% converted so I will try to get it uploaded in the not-too-distant future.

    I checked it last night , fixed some error ... still a few error .. but I am sure your fix more professional.

×