1
namhil
Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 3:32

  • namhil

  • Just popping in

  • Posts: 9

  • Since: 2004/4/25


Hi:

After install xoops 2.5.5, I tried to publish an article on my website, and it doesn´t matter if I use SmartSection or Publisher, on Publish Date appears:

_CPM1_August-0400RAugPMEDT

if I click on Today, I get a:

_CAL_FORMAT

The problem is that the article appears as last one on the list with date: 01-01-1970

I have xoops 2.5.5 in english on my site, and I used to have previous versions in spanish...

Any ideas, please?

namhil

2
Mamba
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 4:43

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


It seems like the problem is that you're mixing Spanish and English versions. My guess, is that you have in your settings in Preferences still "Spanish" as a language.

The problem is that XOOPS is then using the "calendar.php" from the /language/spanish, which is coming then from your older version, and therefore it is missing:

define("_CAL_FORMAT","Y-m-d");

You'll need to do one of the two:

1) switch to using English
2) add the above define to your /language/spanish/calendar.php

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
namhil
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 5:46

  • namhil

  • Just popping in

  • Posts: 9

  • Since: 2004/4/25


Well, that was my guess too, but since I did a new install, I only have it in English, although I have the option to switch it to spanish... so:

1- it´s in English
2- I dont´t have a language/spanish folder

Also in .../modules/system/language/english I don´t have any calendar.php file...


4
Mamba
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 6:27

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


The calendar file is in the main language folder.

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
namhil
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 14:58

  • namhil

  • Just popping in

  • Posts: 9

  • Since: 2004/4/25


Sorry, Mamba, you´re right about the file, but there´s no spanish folder neither, and my xoops is still in English.

Before I tried to have my xoops in spanish, but it was a mess with accents, weird characters, etc... so I decided to have everything in English.

Any other way so I can fix that, please?

(btw, thanks Mamba for answering so fast)

6
Mamba
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 19:45

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Well, do you have in your "calendar.php" file this entry:

define("_CAL_FORMAT","Y-m-d");


If not, please add it and test it again.

Also, you might run a filecheck to make sure that you have all the correct files.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

7
namhil
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/19 22:26

  • namhil

  • Just popping in

  • Posts: 9

  • Since: 2004/4/25


Thanks Mamba!!!

Now it´s fixed!! I have some 'deprecated' issues, tho.. (where should I ask for help about that?)

Also, how do I do a filecheck?? (long time -4 years- without using xoops)


8
Mamba
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/20 1:52

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:

namhil wrote:
Also, how do I do a filecheck??

See the "File Integrity Check" instructions in the release notes
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

9
namhil
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/20 15:01

  • namhil

  • Just popping in

  • Posts: 9

  • Since: 2004/4/25


Thanks, Mamba!
That´s what I did, but i get some weird feedback, ´cuz I'm not supposed to upload to the server the /extras or /htdocs folder (just the content of the last one, right?).
And when I do a checksum.php I receive back:

./cedf1f4c69f10457c5654d9489e6d31a *htdocs\xoops_lib\readme.txt missing !
./79cf123e2deb695b53144e0beabafb84 *upgrade\abstract.php missing !
./7cdd8d0633d520db700adf2ffb57f043 *upgrade\check_version.php missing !
...
./81bfc3273d91a5bee7a9a72048b5f0dc *docs\README.txt missing !
There are 3199 files checked!!!

Do I have to change any variable in checksum.php?

Also, having Debug mode on:
On user side, i get:

'Database::getInstance();' is deprecated since XOOPS 2.5.4, please use 'XoopsDatabaseFactory::getDatabaseConnection();' instead.
Function xoops_load_lang_file() is deprecated, use xoops_loadLanguage() instead

Where do I fix that?

Thanks in advance.

10
Mamba
Re: Date problem in SmartSection and Publisher after 2.5.5
  • 2012/8/20 15:37

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


1) If you installed it as a "fresh" installation, you can ignore the "/upgrade" folder. If these are all the errors that you're getting, then you should be OK

2) You can ignore all the "deprecated" errors - they are only for module developers informing them to update their modules, because the "deprecated" functions might be removed in the next version.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

109 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 109


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits