Page 1 of 1

[solved]Newsmodule doesn't publish new articles in front-end

Posted: Tue Dec 22, 2015 8:28 pm
by eddie67
Hi.

I have experienced on severeral on my sites, that after upgrade to cms ms 2.x the news module does not publish articles anymore. The article shows in the back-end but not in the front-end

Further info:

Current PHP Version (phpversion) Success 5.5.30
md5 function (md5_function) Success On (True)
JSON functions (json_function) Success On (True)
GD version (gd_version) Success 2
tempnam function (tempnam_function) Success On (True)
Magic quotes in runtime (magic_quotes_runtime) Success Off (False)
Is E_STRICT disabled in error_reporting (E_STRICT) Success
Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED) Success
Testing for time difference in the file system (test_file_timedifference) Success No time difference found
Testing for time difference in the database (test_db_timedifference) Success No time difference found
Checking if the HTTPD process can create a file inside of a directory it created (create_dir_and_file) Success 1
PHP Effective Memory Limit (memory_limit) Success 128M
Maximum Execution Time (max_execution_time) Caution 30 ?
PHP register_globals (register_globals) Success Off (False)
PHP output_buffering (output_buffering) Success 4096
disable_functions in PHP (disable_functions) Success
PHP Open Basedir (open_basedir) Success
Test for remote URL (test_remote_url) Success Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success
File uploads (file_uploads) Success On (True)
Maximum Post Size (post_max_size) Caution 8M ?
Maximum Upload Size (upload_max_filesize) Caution 2M ?
Session Save Path (session_save_path) Success /tmp (0700)
Sessions are allowed to use Cookies (session_use_cookies) Success On (True)
Basic XML (expat) support (xml_function) Success On (True)
Checking for the XMLReader class (xmlreader_class) Success On (True)
Test ini_set (check_ini_set) Success On (True)
Test for the curl library (curl) Success On
Test curl version (curlversion) Success version 7.36.0, minimum recommended version is 7.19.7

Server Information
Server Software (server_software) apache/2.4.12 (unix) openssl/1.0.1e-fips mod_bwlimited/1.4
Server API (server_api) litespeed
Server Operating System (server_os) linux 2.6.32-531.23.3.lve1.2.66.el6.x86_64 on x86_64
Server Database (server_db_type) mysql (mysqli)
Server Database Version (server_db_version) Success 5.5.44
Check database access levels (server_db_grants) Success found a "grant all" statement that appears to be suitable

Any idea what the problem might be ?

Regards
Eddie

Re: News module does not publish new articles in front-end

Posted: Tue Dec 22, 2015 8:59 pm
by calguy1000
works for me, I just tested.

Re: News module does not publish new articles in front-end

Posted: Tue Dec 22, 2015 11:32 pm
by eddie67
So, if it does not work on a fresh install, where do I look ?

Eddie

Re: News module does not publish new articles in front-end

Posted: Tue Dec 22, 2015 11:37 pm
by Rolf
The fresh install is located at ...
I can see the News articles, browser caching at your end?

Re: News module does not publish new articles in front-end

Posted: Wed Dec 23, 2015 8:45 am
by eddie67
Oh, must be the Varnish at my host. I have even disabled it.
So a fresh install is working. I will edit my post..


But what or where do I search to find this problem om my upgraded sites?
The site(s) worked in 1.1.12, and after upgrade everything is working except the front-end News articles.


Thanks
Eddie

Re: News module does not publish new articles in front-end

Posted: Wed Dec 23, 2015 9:30 am
by Rolf
My first guess is change template names. Check template names in the News admin and the one you use in your {News ...} tags.

Re: News module does not publish new articles in front-end

Posted: Fri Dec 25, 2015 10:30 am
by eddie67
Thank you for your help.

Regards
Eddie

Re: News module does not publish new articles in front-end

Posted: Thu Jan 07, 2016 4:07 pm
by eddie67
So, after more digging this is the actual problem:

The server-time was not set to my country, so the articles was published 7 hours later (USA vs Europe).

THERE IS AN ISSUE HERE:

On this particular VPS, there is a cmsms 1.x site finansavisen.hegnar.no, where news are posted correctly.

On the same VPS, the new site at glimrende.xyz is cmsms 2.1

Both has the line $config['timezone'] = 'Europe/Oslo'; In their config.php.

The 1.x site is apparantly reading the config.php timezone and using this time, whereas the 2.x does not.
The solution for me was to change servertime at my VPS. But what about shared hosting where you can not choose?

Perhaps this will be to some help for others if you have the same issue.

Regards
Eddie