GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   TradeX error, need some suggestions (https://gfy.com/showthread.php?t=1143115)

druid66 06-14-2014 04:04 PM

TradeX error, need some suggestions
 
Hey guys,
I've installed TradeX from JMB but it's displays error whenever i'm trying to do anything inside control panel, error says:

"Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/home/xxx.com/public_html/tradex/lib/global.php on line 88
A fatal error has occurred: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/home/xxx.com/public_html/tradex/lib/utility.php on 996"

i was reading topics on unofficial board but didnt find anyone who had same problem.

any idea?

BSleazy 06-14-2014 04:12 PM

I think that's something your host can change on the server. I've had that issue with another script.

druid66 06-14-2014 04:13 PM

tried this way. my admins told my my script is to old probably for my php on the server.
i'm not accepting this answer, to many ppl are using tradex - i doubt they are all on old versions of php.

candyflip 06-14-2014 04:22 PM

http://forums.unofficialjmbsupport.c...php?board=18.0

BSleazy 06-14-2014 04:22 PM

Ok ya I can't remember if the host did something or if I changed a php setting or what but I know I didn't modify the script.

druid66 06-14-2014 04:23 PM

Quote:

Originally Posted by candyflip (Post 20124474)

i read this exactly page. didn't find my error or maybe missed it? is it somewhere there?

druid66 06-14-2014 04:25 PM

Quote:

Originally Posted by BSleazy (Post 20124475)
Ok ya I can't remember if the host did something or if I changed a php setting or what but I know I didn't modify the script.

thanks for trying.

candyflip 06-14-2014 04:26 PM

Quote:

Originally Posted by druid66 (Post 20124476)
i read this exactly page. didn't find my error or maybe missed it? is it somewhere there?

You can also get to the old JMB Support Forum archive. It's on a subdomain, but it's there.

Or ask your question there on that board :winkwink:

druid66 06-14-2014 04:28 PM

Quote:

Originally Posted by candyflip (Post 20124478)
You can also get to the old JMB Support Forum archive. It's on a subdomain, but it's there.

Or ask your question there on that board :winkwink:

ill browse old JMB threads tomorrow maybe it's some older error but i doubt tbh i think it's new one.

as for asking, i've tried some time ago, after almost week of waiting i gave up.

signupdamnit 06-14-2014 06:20 PM

It looks like it probably is related to your php version. TradeX was unmaintained for a while.

Quick Googlefu which might put you on track:

http://blog.randell.ph/2010/04/15/wa...zone-settings/

http://askubuntu.com/questions/33201...-settings-what

http://forums.oscommerce.com/topic/3...zone-settings/

CrazyMartin 06-14-2014 06:33 PM

Druid, you should ask me today when we spoke :)

you have to add date setitngs to php.ini

for example
date.timezone = 'America/Toronto'

uncomment date.timezone and put correct timezone

then restart httpd server

but if you are on virtualhost it can be problematic...

CrazyMartin 06-14-2014 06:41 PM

or just put this code inside problematic php file

date_default_timezone_set('Europe/Lisbon');

set timezone where your server is located

available timezones are on php site, i can't post a link because i have less than 30 posts :)

Martin Sparrow 06-14-2014 09:17 PM

Quote:

Originally Posted by CrazyMartin (Post 20124534)
or just put this code inside problematic php file

date_default_timezone_set('Europe/Lisbon');

set timezone where your server is located

available timezones are on php site, i can't post a link because i have less than 30 posts :)

That

Or else;
fix the set your server properly up

If not;

require doctor


druid66 06-15-2014 02:47 AM

Quote:

Originally Posted by CrazyMartin (Post 20124530)
Druid, you should ask me today when we spoke :)

you have to add date setitngs to php.ini

for example
date.timezone = 'America/Toronto'

uncomment date.timezone and put correct timezone

then restart httpd server

but if you are on virtualhost it can be problematic...

didn't wanted to bother you, alread took a lot of your time, thanks a lot :D


Quote:

Originally Posted by signupdamnit (Post 20124524)
It looks like it probably is related to your php version. TradeX was unmaintained for a while.

Quick Googlefu which might put you on track:

http://blog.randell.ph/2010/04/15/wa...zone-settings/

http://askubuntu.com/questions/33201...-settings-what

http://forums.oscommerce.com/topic/3...zone-settings/

Thank you very much for links, i've tried to google it but i wasn't sure how to adress my problem, tried partially cut of sentence of error but didn't work.

Quote:

Originally Posted by Martin Sparrow (Post 20124596)
That

Or else;
fix the set your server properly up

If not;

require doctor


i'm lost cause to doctors :D



ok guys, i'm off to fix it, thanks everyone!

Klen 06-15-2014 03:34 AM

Quote:

Originally Posted by CrazyMartin (Post 20124534)
or just put this code inside problematic php file

date_default_timezone_set('Europe/Lisbon');

set timezone where your server is located

available timezones are on php site, i can't post a link because i have less than 30 posts :)

Yes that is a proper way to resolve problem,but if you are lazy,you can simply add @ to problematic line
(@ is suppressor which ignores warning messages)

druid66 06-15-2014 03:41 AM

Quote:

Originally Posted by KlenTelaris (Post 20124765)
Yes that is a proper way to resolve problem,but if you are lazy,you can simply add @ to problematic line
(@ is suppressor which ignores warning messages)

since i'm unfamiliar with php and CrazyMartin is probably not up yet, i've done as you advised and used @ sign next to problematic 996 line in php file and script it working!

thanks a lot!

my php looks like this now:


function stats_check_update_time()
{
global $C;

if( !isset($C['base_url']) )
{
return;
}

$now = time();

if( !file_exists(FILE_TIME_STATS) )
{
file_create(FILE_TIME_STATS);
}

@ $last = filemtime(FILE_TIME_STATS);
@ $date_now = date('YmdHi', $now);
@ $date_last = date('YmdHi', $last);

if( $date_now != $date_last )
{
$fp = fopen(FILE_TIME_STATS, 'w');
flock($fp, LOCK_EX | LOCK_NB, $would);

if( $would )
{
fclose($fp);
return;
}

druid66 06-15-2014 05:25 AM

ok guys, not so easy as i thought.

using @ sign doesn't work for long range, script need this date to be set properly to actually count clicks and stuff..

can someone of you look into script pasted above and show me how to implement correct value into it?

Martin Sparrow 06-15-2014 06:08 AM

Quote:

Originally Posted by druid66 (Post 20124806)
ok guys, not so easy as i thought.

using @ sign doesn't work for long range, script need this date to be set properly to actually count clicks and stuff..

can someone of you look into script pasted above and show me how to implement correct value into it?


If you can change your php.ini
Just do this:


Quote:

Originally Posted by CrazyMartin (Post 20124530)
Druid, you should ask me today when we spoke :)

you have to add date setitngs to php.ini

for example
date.timezone = 'America/Toronto'

uncomment date.timezone and put correct timezone

then restart httpd server

but if you are on virtualhost it can be problematic...


druid66 06-15-2014 06:12 AM

Quote:

Originally Posted by Martin Sparrow (Post 20124821)
If you can change your php.ini
Just do this:

admins done this yday for me, i think it's my time to change smth in my script now. i just don't know how to fix this error which is on the 996 line of utility.php the one that i've override with @.

Klen 06-15-2014 10:05 AM

Quote:

Originally Posted by druid66 (Post 20124806)
ok guys, not so easy as i thought.

using @ sign doesn't work for long range, script need this date to be set properly to actually count clicks and stuff..

can someone of you look into script pasted above and show me how to implement correct value into it?

Really ?Well i guess i should pay more attention to it.Tho i ditched tradex,wanted to install it to one domain,it was throwing some unkown error so i simply deployed script which is usually use and it's also free.Tho,i think same date error occur on every jbmsoft script,now if someone would fix that on current unofficial github.Perhaps we could make our own github channel,we could also include some mods.

druid66 06-15-2014 10:13 AM

Quote:

Originally Posted by KlenTelaris (Post 20125007)
Really ?Well i guess i should pay more attention to it.Tho i ditched tradex,wanted to install it to one domain,it was throwing some unkown error so i simply deployed script which is usually use and it's also free.Tho,i think same date error occur on every jbmsoft script,now if someone would fix that on current unofficial github.Perhaps we could make our own github channel,we could also include some mods.

tgpx, tradex - all are open sources now, if anyone contribute to that scripts his pieces, fixes, mods and make it public it can grow as wordpress grow - all free.

other trade scripts those "free" ones always took part of your traffic and probably never will be really free and open.

it's worthy to spent some time and fix it. me from my side - when i'll have it fixed finally i'm gonna post solution here.

Klen 06-15-2014 10:56 AM

Quote:

Originally Posted by druid66 (Post 20125019)
tgpx, tradex - all are open sources now, if anyone contribute to that scripts his pieces, fixes, mods and make it public it can grow as wordpress grow - all free.

other trade scripts those "free" ones always took part of your traffic and probably never will be really free and open.

it's worthy to spent some time and fix it. me from my side - when i'll have it fixed finally i'm gonna post solution here.

Well i wanted to upgrade tradex,but seems just like a toomuch hassle.And there is a one problem which i have no idea how to fix it - tradex generate like zillion of cache files which i find it as big no no as a lot of small files generating is bad for hard drive operating,and that was just a single small site,imagine a network of sites howmuch they would generate files.There is a improvised fix where you can run a cron to delete old cache files but it should be real fix not improvisation,that fix is like preventing flood of water by setting water flood to go outside instead just closing pipe.But when it comes to tgpx i think that one it's worth to work on it,as other script one way or another sucks,plus i already made some modifications on it.

druid66 06-15-2014 11:03 AM

Quote:

Originally Posted by KlenTelaris (Post 20125057)
Well i wanted to upgrade tradex,but seems just like a toomuch hassle.And there is a one problem which i have no idea how to fix it - tradex generate like zillion of cache files which i find it as big no no as a lot of small files generating is bad for hard drive operating,and that was just a single small site,imagine a network of sites howmuch they would generate files.There is a improvised fix where you can run a cron to delete old cache files but it should be real fix not improvisation,that fix is like preventing flood of water by setting water flood to go outside instead just closing pipe.But when it comes to tgpx i think that one it's worth to work on it,as other script one way or another sucks,plus i already made some modifications on it.

interesting, so you are not recommending tradex?

which one would be ok?

i didn't know about this cache files.

Klen 06-15-2014 01:09 PM

Quote:

Originally Posted by druid66 (Post 20125064)
interesting, so you are not recommending tradex?

which one would be ok?

i didn't know about this cache files.

Well as you said it is only script at the moment which is fully free,meaning dont take any skim.Script which i use dont take any skim either but that is because i have special relationship with author,for other people it takes skim as well.But still you can use tradex if you dont mind that cache problem.While i was sort of planning to overhaul tradex(make my own version of it),script which i currently use is so much more powerful,not just of tradex also more powerful then any other trade script,it simply there is no sense to bother with relativity simple tradex.For example,i just set to display on single file full stats of each site on left site from my original network,and on right side stats of my asian network(where i trade with you)and it is just look awesome ,and tradex currently dont have that capability.

1215 06-15-2014 01:59 PM

Upgrade to trade expert.

druid66 06-15-2014 04:37 PM

Quote:

Originally Posted by KlenTelaris (Post 20125151)
Well as you said it is only script at the moment which is fully free,meaning dont take any skim.Script which i use dont take any skim either but that is because i have special relationship with author,for other people it takes skim as well.But still you can use tradex if you dont mind that cache problem.While i was sort of planning to overhaul tradex(make my own version of it),script which i currently use is so much more powerful,not just of tradex also more powerful then any other trade script,it simply there is no sense to bother with relativity simple tradex.For example,i just set to display on single file full stats of each site on left site from my original network,and on right side stats of my asian network(where i trade with you)and it is just look awesome ,and tradex currently dont have that capability.

what script are you using if it's not a secret? is it expensive?

Klen 06-16-2014 01:21 PM

Quote:

Originally Posted by druid66 (Post 20125290)
what script are you using if it's not a secret? is it expensive?

Tradecontrol.No it is actually quite cheap.

druid66 06-17-2014 08:35 AM

thank you, ill check your script.

guys i don't wanna start new topic, tell me please is it possible to copy galleries+thumbs to another domain? i've installed new copy of tgpx on another domain - do not want it to be handled by one main script - i prefer from few reasons to have different copy on every domain, so i've backed up thumbs and galleries using backup option and i've tried to restore it on new one but it didn't work, any way to do this?

Klen 06-17-2014 08:45 AM

Quote:

Originally Posted by druid66 (Post 20127337)
thank you, ill check your script.

guys i don't wanna start new topic, tell me please is it possible to copy galleries+thumbs to another domain? i've installed new copy of tgpx on another domain - do not want it to be handled by one main script - i prefer from few reasons to have different copy on every domain, so i've backed up thumbs and galleries using backup option and i've tried to restore it on new one but it didn't work, any way to do this?

Yes i think it is,tgpx does have option to bulk import galleries with predefined thumb.Tho,not sure can count clics be transfered.Also dont remember is there gallery export function in tgpx admin,but even if it is not,you can do that by doing mysql table data export.

druid66 06-17-2014 09:02 AM

Quote:

Originally Posted by KlenTelaris (Post 20127350)
Yes i think it is,tgpx does have option to bulk import galleries with predefined thumb.Tho,not sure can count clics be transfered.Also dont remember is there gallery export function in tgpx admin,but even if it is not,you can do that by doing mysql table data export.

gallery export! that was the keyword i needed.
seiously i've been looking for database backup/restore but i forget it should be called export.
manual describes it with details here for example: http://www.javbeauties.com/tgpx/admi...es-export.html

thanks a lot for pointing this one out, sometimes when i'm overthinking i'm clouding obvious solutions :D


All times are GMT -7. The time now is 03:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123