start publishing time k2 item, not work properly

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Dec 05, 2013 7:13 pm
I have this problem:
I set the start time of publication k2 item at 13.00, the article appears on NSP gk4 module at 10.00 but when i click on it i get 404 error page
The article will appear normal when time goes 13.00 (the hours and the time difference is indicative)

for the immediate publication of articles I worked solve the known problem with the time difference of servers in this way

https://www.gavick.com/forums/news-show ... 21959.html
User avatar
Junior Boarder

GK User
Thu Dec 05, 2013 7:32 pm
I have done these changes on NSP gk4 module:

go to file helper.php in NSP module and find this line :

Code: Select all
$this->config['time_offset'] = $params->get('time_offset', 0); // time offset for timezones problem


and replace with :

Code: Select all
  $this->config['time_offset'] = 24; // time offset for timezones problem
User avatar
Junior Boarder

teitbite
Sun Dec 08, 2013 4:43 pm
Hi

Please let me know if this hack helped or if You want me to investigate it a little bit further.
User avatar
Moderator

GK User
Sun Dec 08, 2013 4:49 pm
This hack helped for instant publicing and no need offset time.. But the problem I described above remains..
User avatar
Junior Boarder

teitbite
Tue Dec 10, 2013 11:40 am
Hi

Please show me an example of such module. I need to check if it's because of the link or the problem is than K2 also thinks that this article should not be published yet and displays 404 page instead.
User avatar
Moderator

GK User
Tue Dec 10, 2013 12:23 pm
i sent you pm
User avatar
Junior Boarder

teitbite
Tue Dec 10, 2013 1:12 pm
Hi

I've checked and link os correct, so module is not likely be causing that. On K2 forum I saw a thread where the same thing was happening with cache enabled. Please try disable cahe just for tests, next test would be to see if link works if You will change to a joomla default template. I think it's related with changes in format of dates withing new joomla.
User avatar
Moderator

GK User
Tue Dec 10, 2013 1:21 pm
this article would not have appeared by the time of publication. If you look in the category list is not displayed. contrary to the module comes up and you can not open it until publication time..
This is the problem.
User avatar
Junior Boarder

GK User
Tue Dec 10, 2013 1:29 pm
in k2 category list, the programming publishing articles function properly. the module does not operate normally, I think because of the problem with the time difference of servers responding module in joomla 3
User avatar
Junior Boarder

teitbite
Fri Dec 13, 2013 4:52 pm
Hi

I just had a chance to work with the site with this problem and just for test I've used K2 tools module and articles are not displaying as well. Problem is with the function creating a value with a NOW time. The time this function is showing is always 20h more than the time article was created (at least in the example I have an access to). So a solution to change the time offset in NSP is a good solution for that, but not showing articles are a differetn thing and related to K2 component. I cannot tell how to fix that :(
User avatar
Moderator


cron