This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Erro Not recognized () , when publish a new listing
« on: October 23, 2017, 06:49:24 PM »
Hey guys,

I test the plugin in lakompra.us and localhost, with bender and zara, but I have no clue why show me the error message Not recognized () after publishing a new ad and try to make premium.

I try with registered and non-registered users.

Please check the attachment image, I don't make any change in the plugin in Promotions section of user account is working fine





LaKompra.com

*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #1 on: October 23, 2017, 08:37:59 PM »
@Carlos
Are you able to reproduce problem on our demo site?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #2 on: October 23, 2017, 09:01:45 PM »
@Carlos
Are you able to reproduce problem on our demo site?

Yes, of course on your site demo is working without problems, so I ask because I have no idea why my site is not working.

Also, I have another problem, check the attachment, The pay button said, upload the new image but is not a payment for images and I'm not translating yet the plugin.

I try to change the submit value in TwoCheckoutPayment.php but is not working, I found this on cart.php and i change or just remove but still not working.

Code: [Select]
osp_buttons(round($total, 2), sprintf(__('Pay %s cart items for %s', 'osclass_pay'), $count, osp_format_price($total, 2)), '901x1x'.$user_id, array('user' => @$user['pk_i_id'], 'itemid' => @$user['pk_i_id'], 'email' => @$user['s_email'], 'amount' => round($total, 2)));
    ?>


My apologies for my questions and problems, but I purchase the plugin to run the premium options right away, thank you for your time

LaKompra.com

*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #3 on: October 24, 2017, 12:47:37 PM »
@Carlos
So how should I reproduce your issue?

Second problem seems to be related to Profile Picture plugin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #4 on: October 24, 2017, 01:29:46 PM »
@Carlos
So how should I reproduce your issue?

Second problem seems to be related to Profile Picture plugin.

Reproduce the issue: www.lakompra.us if you need more details, ftp or something just let me know Im happy to help you.

LaKompra.com

*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #5 on: October 24, 2017, 01:39:42 PM »
@Carlos
Have you tried to disable plugins?
Have you tried it on bender theme?
You should fix javascript errors as well?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #6 on: October 24, 2017, 02:51:10 PM »
@Carlos
Have you tried to disable plugins?
Have you tried it on bender theme?
You should fix javascript errors as well?

Thanks for your reply, as I told before, yes, I already try with bender, I disable all my plugins, and I check the javascript with the plugin offs.

I use https://varvy.com/tools/requests/ and I have the same JS files. I have no clue why the plugin cannot get the item information, i open the item_pay.php and check this code

Code: [Select]
<div class="osp-cart">
      <div class="osp-cart-head-row">
        <div class="osp-cart-col code"><?php _e('ID''osclass_pay'); ?></div>
        <div class="osp-cart-col prod"><?php _e('Product''osclass_pay'); ?></div>
        <div class="osp-cart-col qty"><?php _e('Qty''osclass_pay'); ?></div>
        <div class="osp-cart-col pric"><?php _e('Total Price''osclass_pay'); ?></div>
        <div class="osp-cart-col delt">&nbsp;</div>
      </div>

      <?php 
        $i 
1
        
$total 0
        
$count 0
        
$types = array(OSP_TYPE_PUBLISHOSP_TYPE_IMAGEOSP_TYPE_TOPOSP_TYPE_PREMIUMOSP_TYPE_HIGHLIGHTOSP_TYPE_REPUBLISH);
      
?>


      <?php foreach($types as $type) { ?>
        <?php if(osp_fee_is_allowed($type) && osp_fee_exists($type$item_id) && !osp_fee_is_paid($type$item_id)) { ?>

          <?php 
            $record 
osp_get_fee_record($type$item_id0);
            
$price osp_get_fee($type1$item_id$record['i_hours'], $record['i_repeat']);
          
?>


          <?php if($price 0) { ?>
            <?
              $total = $total + $price;
              $count = $count + 1;
              $code_array = array('', $type, 1, $item_id, $record['i_hours'], $record['i_repeat']);
              $code = array_filter($code_array);
              $code = implode('x', $code);
            ?>

         
            <div class="osp-cart-row" data-code="<?php echo $code?>" data-row-id="<?php echo $i?>">
              <div class="osp-cart-col code"><?php echo $i?></div>
              <div class="osp-cart-col prod">
                <span class="p1 osp-<?php echo $type?>"><?php echo osp_product_type_name($type); ?></span>
                <span class="px">
                  <span class="p2"><?php echo osp_product_cart_name($code_array); ?></span>
                  <span class="p3"><?php echo osp_product_cart_text($type); ?></span>
                </span>
              </div>
              <div class="osp-cart-col qty">1x</div>
              <div class="osp-cart-col pric"><?php echo osp_format_price($price); ?></div>

              <div class="osp-cart-col delt">
                <?php if($type <> OSP_TYPE_PUBLISH) { ?>
                  <a href="<?php echo osc_route_url('osp-item-pay-remove', array('removeType' => $type'itemId' => $item_id));?>"><i class="fa fa-trash-o"></i></a>
                <?php } else { ?>
                  <a class="osp-disabled osp-has-tooltip" href="#" onclick="return false;" title="<?php echo osc_esc_html(__('You cannot remove this fee as it is required''osclass_pay')); ?>"><i class="fa fa-trash-o"></i></a>
                <?php ?>
              </div>
            </div>

            <?php $i++; ?>
          <?php ?>
        <?php ?>
      <?php ?>

      <?php if($count 0) { ?>
        <div class="osp-cart-row osp-cart-total">
          <div class="osp-cart-col code">&nbsp;</div>
          <div class="osp-cart-col prod"><?php _e('Cart summary''osclass_pay'); ?></div>
          <div class="osp-cart-col qty"><?php echo $count?>x</div>
          <div class="osp-cart-col pric"><span><?php echo osp_format_price($total); ?></span></div>
        </div>
      <?php } else { ?>
        <div class="osp-cart-row osp-cart-empty">
          <i class="fa fa-warning"></i><span><?php _e('No promotions has been selected''osclass_pay'); ?></span>
        </div>
      <?php ?>
    </div>

One question where is the item name requested.

Im sorry again for insist, I just want to have the premium option up and running
LaKompra.com

*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #7 on: October 24, 2017, 03:08:05 PM »
@Carlos
I've just tested on latest osclass version with bender and everything is allright:
https://dev2.abprofitrade.eu/osclasspay/itempaypub/8/1
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #8 on: October 24, 2017, 03:22:30 PM »
@Carlos
I've just tested on latest osclass version with bender and everything is allright:
https://dev2.abprofitrade.eu/osclasspay/itempaypub/8/1

do you believe that is a javascript error on my site? or maybe the language? thank you for your time

LaKompra.com

*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #9 on: October 24, 2017, 03:28:29 PM »
@Carlos
Do you use latest plugin version?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #10 on: October 24, 2017, 03:42:17 PM »
Well, the last version that I have is, 1.3.1 from osclass market, the reason I purchase on osclass market is that I don't have paypal
LaKompra.com

*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #11 on: October 24, 2017, 03:59:20 PM »
@Carlos
It should be allright. PM me login to your ftp.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #12 on: October 24, 2017, 04:37:54 PM »
@Carlos
It should be allright. PM me login to your ftp.

Done, I send you the FTP information, thank you
LaKompra.com

Marked as best answer by Carlos Carcamo on October 26, 2017, 02:16:38 PM
*

MB Themes

Re: Erro Not recognized () , when publish a new listing
« Reply #13 on: October 26, 2017, 01:59:03 PM »
@Carlos
Fixed.

In file:
oc-content/plugins/osclass_pay/user/item_pay.php

There was:
Code: [Select]
<?
Should be:
Code: [Select]
<?php
This cause to break block to work on PHP 5.x
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: Erro Not recognized () , when publish a new listing
« Reply #14 on: October 26, 2017, 02:17:08 PM »
@Carlos
Fixed.

In file:
oc-content/plugins/osclass_pay/user/item_pay.php

There was:
Code: [Select]
<?
Should be:
Code: [Select]
<?php
This cause to break block to work on PHP 5.x

amazing grace, thank you bro
LaKompra.com