![]() |
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? |
I think that's something your host can change on the server. I've had that issue with another script.
|
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. |
|
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.
|
Quote:
|
Quote:
|
Quote:
Or ask your question there on that board :winkwink: |
Quote:
as for asking, i've tried some time ago, after almost week of waiting i gave up. |
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/ |
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... |
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 :) |
Quote:
Or else; fix the set your server properly up If not; require doctor |
Quote:
Quote:
Quote:
ok guys, i'm off to fix it, thanks everyone! |
Quote:
(@ is suppressor which ignores warning messages) |
Quote:
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; } |
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? |
Quote:
If you can change your php.ini Just do this: Quote:
|
Quote:
|
Quote:
|
Quote:
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. |
Quote:
|
Quote:
which one would be ok? i didn't know about this cache files. |
Quote:
|
Upgrade to trade expert.
|
Quote:
|
Quote:
|
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? |
Quote:
|
Quote:
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