Page 1 of 1

CGCalendar custom field causes error

Posted: Thu Mar 14, 2013 5:35 pm
by cmsmsuser09
Hi

I am using CMS Version 1.11.4 and CG Calendar version 1.10.4.
I am trying to add a custom field in CGCalendar that I can use to upload a photo. I have created a new field and set my root path to the uploads folder under settings. I have also checked the permissions to make sure they are okay.

When I try to upload a file I get the error message: 
ERROR: A problem occurred when trying to copy the file to its final destination.

The file is a jpg under 10k.
I am able to upload to this folder using image or file manager.

Thanks
Kim

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 1:30 pm
by JackOutoftheBox
I am having this same error after I upgraded all modules and software. Did you find out why?

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 2:39 pm
by Jo Morg

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 3:13 pm
by JackOutoftheBox
thanks Jo. I have the same setup and situation as the previous post, but in my case it used to work. I started getting the error once I upgraded my software to 1.11.4.

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 3:28 pm
by Jo Morg
JackOutoftheBox wrote: I have the same setup and situation as the previous post, but in my case it used to work. I started getting the error once I upgraded my software to 1.11.4.
OK, so either you didn't read the post from the link I gave on my previous post, or you have some way to guess what setup cmsmsuser09 has, and expect us to have that same guessing ability.... or more probable: you don't know what setup cmsmsuser09 has, since he didn't provide enough data....
So here is another tip: http://docs.cmsmadesimple.org/troublesh ... nformation
Actually the whole page is filled with tips on how to get the setup data you have. Post it here: CMSMS has a link to a forum ready formated page you can copy data from and paste here.
Help us help you :)

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 6:06 pm
by JackOutoftheBox
Eek. OK. Let's start over here.



----------------------------------------------

Cms Version: 1.11.5

Installed Modules:

CMSMailer: 5.2.1
MenuManager: 1.8.5
ModuleManager: 1.5.5
Search: 1.7.8
ThemeManager: 1.1.8
Forum: 0.9.0
FrontEndUsers: 1.21.16
FormBuilder: 0.7.3
FileManager: 1.4.3
Printing: 1.1.2
CustomContent: 1.9
Play: 1.0.3
Gallery: 1.6.1
CGExtensions: 1.36
CGCalendar: 1.10.4
SiteMapMadeSimple: 1.2.7
CMSPrinting: 1.0.4
MicroTiny: 1.2.5
News: 2.12.12


Config Information:

php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension: /
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.24
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 8192
memory_limit: 64M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 33M
upload_max_filesize: 32M
session_save_path: /home/content/24/10250724/tmp (0705)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.0.96
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages


----------------------------------------------

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 8:09 pm
by Jo Morg
JackOutoftheBox wrote: I started getting the error once I upgraded my software to 1.11.4.
From what version? Did you upload via ftp? What steps did you take to update? Did you update the modules?
For instance Forum 0.9.0 is discontinued and probably won't work properly any longer, and apparently Play 1.0.3 is on a similar situation.

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 9:34 pm
by JackOutoftheBox
Well, this site is several years old, and I've been upgrading it manually via FTP or by extracting it on the server. I deleted the two modules you mentioned (Play and Forum) a while back, so I'm surprised they are showing. Perhaps their tables are still on the database, even though the files are no longer on the server? Could that be affecting things here?

Re: CGCalendar custom field causes error

Posted: Thu Aug 22, 2013 9:59 pm
by Jo Morg
JackOutoftheBox wrote:I deleted the two modules you mentioned (Play and Forum) a while back, so I'm surprised they are showing. Perhaps their tables are still on the database, even though the files are no longer on the server?
Yes: The recommended method is to use uninstall from the module list page, which, if all goes well, triggers a link to completely remove the module files. So, the db entries still exist on your system.
JackOutoftheBox wrote:Could that be affecting things here?
Possible, but not likely. If the modules files were still in place that was a strong possibility. I suspect that either one or more php files got corrupted while uploaded via ftp, or something went wrong during one of the steps of the upgrade process. BTW, why not go all the way and upgrade to the latest CMSMS version: 1.11.7 “Genovesa”? Security recommends it and, IIRC, from 1.11.5 to 1.11.7 there is no change in the database.
Also recommended is to make a checksum against the data file of the corresponding version. That should make clear if there are corrupted core files.
HTH.

Re: CGCalendar custom field causes error

Posted: Fri Aug 23, 2013 10:25 am
by JackOutoftheBox
Yes, I did have problems with FTP upload in the past, so this may be a leftover issue.

I've upgraded to 1.11.7 and did the checksum comparison, but still have the issue.

Do you suggest that I just do a reinstall of the entire system? I have created a workaround (just manually uploading images through the Image Manager) and then created a new field where I enter the file name.

Thanks for your time.

Re: CGCalendar custom field causes error

Posted: Fri Aug 23, 2013 2:18 pm
by Jo Morg
JackOutoftheBox wrote:Do you suggest that I just do a reinstall of the entire system?
I would try that, just to make sure that there are no leftovers:
  • - Do a full backup of files and Database;
  • - Reinstall, but on step 5 DON'T CREATE TABLE OR INSTALL DEFAULT CONTENT;
  • - Clear CMSMS cache;
It may not solve the issue, but at least we are excluding a few other possible causes;

Re: CGCalendar custom field causes error

Posted: Fri Aug 23, 2013 2:24 pm
by calguy1000
ERROR: A problem occurred when trying to copy the file to its final destination.
This message is clear and obvious. There was an error when trying to copy the file.

That means either a permissions, path, or disk space issue.

Re: CGCalendar custom field causes error

Posted: Fri Aug 23, 2013 2:26 pm
by JackOutoftheBox
If that's the case, then why I am able to upload it to the same folder through the Image Manager? This is where I need clarity, please.