Advertisement:

Author Topic: [BUG] Parameters  (Read 3158 times)

frosticek

  • Hero Member
  • *****
  • Posts: 3948
[BUG] Parameters
« on: December 20, 2016, 08:33:32 pm »
On 3.7, when I use following URL:
http://my_site.com/index.php?page=item&action=send_friend&id=112&content_type=add_comment

Then parameter ID is taken as "112&content_type=add_comment" and not just "112"
Parameter CONTENT_TYPE is not possible to get.

So it is not possible to custom parameters in URLs.

On 3.6.3, everything works fine.

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: [BUG] Parameters
« Reply #1 on: December 21, 2016, 12:08:16 am »
Hi Frosti,

you meant 3.6.1 or was there a 3.6.3 I missed?
(Nice catch b.t.w.)


Regards,
Eric

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: [BUG] Parameters
« Reply #2 on: December 21, 2016, 02:07:12 am »
Hi Michael,

there was a necessary change in parameters to fix some old bugs, but it is possible this introduced the bug you've noticed.

Here's the issue:
https://github.com/osclass/Osclass/issues/2092

Regards

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: [BUG] Parameters
« Reply #3 on: December 21, 2016, 11:36:52 pm »
For me it is pretty critical. In my themes I customize files with different parameters so it is not functional now...

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [BUG] Parameters
« Reply #4 on: December 22, 2016, 12:12:35 am »
We can not reproduce this issue, could you tell us something more about your setup?

developerchris

  • Newbie
  • *
  • Posts: 5
Re: [BUG] Parameters
« Reply #5 on: December 22, 2016, 03:29:48 am »
parameter parsing is done in php. are you sure you are using the ampersand '&' and not '&' which is html encoded ampersand

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: [BUG] Parameters
« Reply #6 on: December 22, 2016, 05:43:52 pm »
I am going to reinstall my dev installation, it behave little weird in last weeks and maybe upgrade did not helped.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: [BUG] Parameters
« Reply #7 on: December 22, 2016, 05:53:50 pm »
There could be 1 major bug with 3.7 upgrade.
It tells php 5.6 or higher is required, however I had osclass 3.6.3 with php 5.3 and it allowed me to upgrade into 3.7...

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: [BUG] Parameters
« Reply #8 on: December 22, 2016, 06:47:22 pm »
@_CONEJO
fixed by changing name of parameter content_type.... using this name it stopped to work.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: [BUG] Parameters
« Reply #9 on: December 22, 2016, 06:50:53 pm »
Requirement is only for new installations.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [BUG] Parameters
« Reply #10 on: December 22, 2016, 06:53:58 pm »
There could be 1 major bug with 3.7 upgrade.
It tells php 5.6 or higher is required, however I had osclass 3.6.3 with php 5.3 and it allowed me to upgrade into 3.7...

As dev101 said, requirement is for new installation. It should work fine with PHP 5.3 (and even previous versions), but you should think and upgrade your PHP version. PHP 5.3 is "dead" since August 2014. https://en.wikipedia.org/wiki/PHP#Release_history  But we could not/should not support old versions of PHP, too many problems with compatibility.

The performance improvement from changing to PHP 7.0 (or higher) is huge

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: [BUG] Parameters
« Reply #12 on: December 26, 2016, 03:11:26 am »
As it turned out, this issue is related (but different system and bug manifestation):
http://forums.osclass.org/3-7-x/search-not-work-after-update-3-6-to-3-7-help-please!!!/

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: [BUG] Parameters
« Reply #13 on: December 27, 2016, 10:56:22 am »
@_CONEJO
Sorry for delay, fix works.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: [BUG] Parameters
« Reply #14 on: December 27, 2016, 02:27:10 pm »
@_CONEJO
I found next bug here. Parameters are being messed somehow.
I.e. try this:
- use default bender theme
- go to search page
- enter min price, i.e. 22
- parameter 22 is assigned to sPattern instead of sMinPrice

URL is:
...index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&sPattern=22

Instead of:
...index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&sMinPrice=22