Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15781
  • *Total Topics: 2384
  • *Online Today: 3
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 1
  • *Total: 1

Author Topic: Cache Problem With Safe mod. And tapatalk  (Read 4637 times)

0 Members and 0 Guests are viewing this topic.

Offline sixfeetunder

  • Newbie
  • *
  • Posts: 14
  • Gender: Male
Cache Problem With Safe mod. And tapatalk
« on: 23.06.12, 19:37:09 »
Our site host have safe mod with for php. In the latest release (1,5) we have tons of error logs about cache and sef.

http://www.mazdaclubtr.com/index.php?topic=17403.02: file_exists() [<a href='function.file-exists'>function.file-exists[/url]]: open_basedir restriction in effect. File(/httpdocs/cache/pmx_329908772dacf6db82394f8b88dcd55c-PMX-pmxsef_boardlist.php) is not within the allowed path(s): (/var/www/vhosts/mazdaclubtr.com/httpdocs:/tmp)Dosya: /var/www/vhosts/mazdaclubtr.com/httpdocs/Sources/PortaMx/SubsCache.php
Line: 336

It used to fine older 1.4x versions.

And for the record new sesion management (pmx_checkECL_Cookie) function broke our tapatalk support. (Its used to fine on 1.4x too) I disabled on tapatalk but for now on tapatalk, I can't open new topics or reply topics. I looked to mod but i can't find any session check for post messages. Is there any ?

Sorry for my english.

Offline Cool

  • Free Tibet
  • PortaMx Supporter
  • *
  • Posts: 743
  • Gender: Male
  • I Hate Chinas Authority
Re: Cache Problem With Safe mod. And tapatalk
« Reply #1 on: 23.06.12, 22:13:53 »
eaven if the ecl is not active tapatalk don´t work anymore. tapatalk work fine with smf only.
|I Use: SMF 2.0.4 | PortaMx 1.5.1
Q: What do you do when you see a bear in the woods?
A: Play Dead!

H-A-H-L = Happy Admins Have Linux

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Cache Problem With Safe mod. And tapatalk
« Reply #2 on: 24.06.12, 12:54:07 »
Our site host have safe mod with for php. In the latest release (1,5) we have tons of error logs about cache and sef.

http://www.mazdaclubtr.com/index.php?topic=17403.02: file_exists() [<a href='function.file-exists'>function.file-exists[/url]]: open_basedir restriction in effect. File(/httpdocs/cache/pmx_329908772dacf6db82394f8b88dcd55c-PMX-pmxsef_boardlist.php) is not within the allowed path(s): (/var/www/vhosts/mazdaclubtr.com/httpdocs:/tmp)Dosya: /var/www/vhosts/mazdaclubtr.com/httpdocs/Sources/PortaMx/SubsCache.php
Line: 336

It used to fine older 1.4x versions.
There is no change in the filecache code since previous releases.
That seems like a mis configured server (php.ini) 

Quote from: sixfeetunder
And for the record new sesion management (pmx_checkECL_Cookie) function broke our tapatalk support. (Its used to fine on 1.4x too) I disabled on tapatalk but for now on tapatalk, I can't open new topics or reply topics. I looked to mod but i can't find any session check for post messages. Is there any ?
I can nothing say about Tapatalk, what it's do and how it's work.

We have designed a mobile version, but the users are not willing to pay for a high-end mobile front end.
Many are stubborn in relation to the path, a few in relation to the target.

Offline Fisch.666

  • Newbie
  • *
  • Posts: 29
Re: Cache Problem With Safe mod. And tapatalk
« Reply #3 on: 01.07.12, 12:03:17 »
Hi,

eaven if the ecl is not active tapatalk don´t work anymore. tapatalk work fine with smf only.

are you getting a message similar to "invalid login or your administrator has restricted access to tapatalk" when try to login with tapatalk? One of my users has reported this issue after upgrading from portamx 1.40 to 1.50.

Offline Cool

  • Free Tibet
  • PortaMx Supporter
  • *
  • Posts: 743
  • Gender: Male
  • I Hate Chinas Authority
Re: Cache Problem With Safe mod. And tapatalk
« Reply #4 on: 01.07.12, 13:33:48 »
yes... right...but no problem anymore i just trashed pmx on that site. was not so important to have a portal on there.
|I Use: SMF 2.0.4 | PortaMx 1.5.1
Q: What do you do when you see a bear in the woods?
A: Play Dead!

H-A-H-L = Happy Admins Have Linux

Offline Fisch.666

  • Newbie
  • *
  • Posts: 29
Re: Cache Problem With Safe mod. And tapatalk
« Reply #5 on: 01.07.12, 15:53:45 »
Mhh, ok. But that's not a very good solution for a problem.  :)

Offline Cool

  • Free Tibet
  • PortaMx Supporter
  • *
  • Posts: 743
  • Gender: Male
  • I Hate Chinas Authority
Re: Cache Problem With Safe mod. And tapatalk
« Reply #6 on: 01.07.12, 21:09:21 »
youre fully right but what to do while feline says:
Quote
I can nothing say about Tapatalk, what it's do and how it's work.

so there may is no motivation for Feline to take up the problem
|I Use: SMF 2.0.4 | PortaMx 1.5.1
Q: What do you do when you see a bear in the woods?
A: Play Dead!

H-A-H-L = Happy Admins Have Linux

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Cache Problem With Safe mod. And tapatalk
« Reply #7 on: 03.07.12, 15:35:18 »
so there may is no motivation for Feline to take up the problem
1.. We don't make support a other modification for which we must pay to check this
2.. We have no interest to support modifications they free for forum owner, but not for users
3.. any forum owner CAN install a mobile theme, so a user need no additional (payed) apps like tapatalk
Many are stubborn in relation to the path, a few in relation to the target.

Offline Fisch.666

  • Newbie
  • *
  • Posts: 29
Re: Cache Problem With Safe mod. And tapatalk
« Reply #8 on: 04.07.12, 15:38:44 »
Hi,

1.. We don't make support a other modification for which we must pay to check this

Ok, thats understandable and should be accepted. I've posted this problem in the tapatalk forums, hope we get some help there.

2.. We have no interest to support modifications they free for forum owner, but not for users
3.. any forum owner CAN install a mobile theme, so a user need no additional (payed) apps like tapatalk

Tapatalk was installed on my 3 forums by request of my Users and i had mobile themes installed before... ;)

Offline digiscrap

  • PortaMx Language
  • *
  • Posts: 198
  • Gender: Male
    • Digiscrap.nl
Re: Cache Problem With Safe mod. And tapatalk
« Reply #9 on: 06.07.12, 16:22:56 »
Ok, thats understandable and should be accepted. I've posted this problem in the tapatalk forums, hope we get some help there.
Yes, I hope so. Where can I find that forum post? Could you please point me there (by PM, I don't think Feline likes that kind of links).

Tapatalk was installed on my 3 forums by request of my Users and i had mobile themes installed before... ;)
Same here. We have a lot of Tapatalk users.
Digiscrap.nl, digitaal scrappen

SMF2.0.2GOLD + PortaMx v1.45
Dutch translation PortaMx1.45

Offline Fisch.666

  • Newbie
  • *
  • Posts: 29
Re: Cache Problem With Safe mod. And tapatalk
« Reply #10 on: 06.07.12, 17:33:56 »
Hi,

yes thats the reason why i don't have posted the link here. You've got mail.  :)

Offline Cool

  • Free Tibet
  • PortaMx Supporter
  • *
  • Posts: 743
  • Gender: Male
  • I Hate Chinas Authority
Re: Cache Problem With Safe mod. And tapatalk
« Reply #11 on: 06.07.12, 20:48:49 »
anyhow...tapatalk was working before and does work with any single smf-install. so pmx should not change anything that collide with smf and theire mods.
|I Use: SMF 2.0.4 | PortaMx 1.5.1
Q: What do you do when you see a bear in the woods?
A: Play Dead!

H-A-H-L = Happy Admins Have Linux

Offline toastido

  • Newbie
  • *
  • Posts: 2
Re: Cache Problem With Safe mod. And tapatalk
« Reply #12 on: 07.07.12, 06:11:04 »
You can fix tapatalk very easily by changing line 167 of $sourcedir/Subs-Auth.php.

Change this:
Code: [Select]
// PortaMx ecl cookie handling
if(pmx_checkECL_Cookie())
session_destroy();

to this:

Code: [Select]
// PortaMx ecl cookie handling
//if(pmx_checkECL_Cookie())
session_destroy();

and it will work again.  IMO there's no reason to check the ECL cookie in order to destroy the session...  Perhaps this is not the correct fix, but it should at least point the developers in the right direction.

Also, to fix posting via tapatalk, modify $sourcedir/Security.php at line 652

from this:

Code: [Select]
if(!pmx_checkECL_Cookie())
$error = 'session_verify_fail';

// Is it in as $_POST['sc']?
elseif ($type == 'post')

to this
Code: [Select]
//if(!pmx_checkECL_Cookie())
// $error = 'session_verify_fail';

// Is it in as $_POST['sc']?
//else
        if ($type == 'post')


I'm not sure if there's anything else broken in tapatalk, but this fixes the main two issues (logging in and posting)

Offline Fisch.666

  • Newbie
  • *
  • Posts: 29
Re: Cache Problem With Safe mod. And tapatalk
« Reply #13 on: 07.07.12, 08:39:03 »
Wow great, thanks for this fix. Saves me from digging around in the code.

Will test it in the next few days. O0

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Cache Problem With Safe mod. And tapatalk
« Reply #14 on: 07.07.12, 21:53:37 »
You have to note, that ECL not works with these changes and so you can have many errors in the log.
Also we can't give support, if you change any code they applied by PortaMx.
Many are stubborn in relation to the path, a few in relation to the target.