Unable to upload images...?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
gummi

Unable to upload images...?

Post by gummi »

When I go to Content > Image manager, I'm not able to upload images
from all computers. It works fine at home, but at the office the page just
reloads without anything happening ?

Another problem is that when I go to Content > Pages and try to "Insert/
Edit Image", the "Browse Server" window is empty, allthough I can see a
bunch of images on the server via my ftp-program. They just don't show
up when using the "Insert/Edit Image" ?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Unable to upload images...?

Post by Dr.CSS »

Are your images in the root folder images or uploads/images, this can mess with first time user who have made HTML web sites as it's SOP to put them in a folder called images, with CMSMS the image manager and all other mod. such as an editor is going to look in uploads/images...

Not being able to upload at work may have to do with their firewall/server restrictions...
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: Unable to upload images...?

Post by chotaboy »

i have the same or at least a similar problem

except i have no firewall and other sites i have running with cmsms
allow me to upload images

i think i know the problem

it lies with the config file.. im pretty sure

becouse the image manager was giving an error which i fixed by tewwking the path in config.php

but the file manager is still giing this error

Warning: opendir(/home/content/a/d/v/advbalmar\uploads): failed to open dir: No such file or directory in /home/content/a/d/v/advbalmar/html/admin/files.php on line 245

Warning: readdir(): supplied argument is not a valid Directory resource in /home/content/a/d/v/advbalmar/html/admin/files.php on line 246

Warning: closedir(): supplied argument is not a valid Directory resource in /home/content/a/d/v/advbalmar/html/admin/files.php on line 247

Warning: dir(/home/content/a/d/v/advbalmar\uploads): failed to open dir: No such file or directory in /home/content/a/d/v/advbalmar/html/admin/files.php on line 276

Fatal error: Call to a member function on a non-object in /home/content/a/d/v/advbalmar/html/admin/files.php on line 278

files.php is there i checked..
so i was thinkin since im beatin my brains out here tryin to figure out why this isnt working
i thought id post my config.php file here and if u see the prob please let me know  :)

so here it is ( with the login info x"d of course :)


Global Settings in the admin panel)
#after making any changes to path or url related options

#-----------------
#Database Settings
#-----------------

#This is your database connection information.  Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
$config['db_username'] = 'xxxxxxxxxxxx';
$config['db_password'] = 'xxxxxxxxxxxxxxx';
$config['db_name'] = 'xxxxxxxxxxxxxx';

#If app needs to coexist with other tables in the same db,
#put a prefix here.  e.g. "cms_"
$config['db_prefix'] = 'cms_';

#Use persistent connections?  They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;

#Use ADODB Lite?  This should be true in almost all cases.  Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;

#-------------
#Path Settings
#-------------

#Document root as seen from the webserver.  No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://advertisingballoonmart.com';
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/home/content/a/d/v/advbalmar/html';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/home/content/a/d/v/advbalmar\tmp\cache';

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/home/content/a/d/v/advbalmar/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';


#---------------
#Upload Settings
#---------------

#Maxium upload size (in bytes)?
$config['max_upload_size'] = 32000000;

#Permissions for uploaded files.  This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';

#------------------
#Usability Settings
#------------------

#Allow smarty {php} tags?  These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;

#CMSMS Debug Mode?  Turn is on to get a better error when you
#see {nocache} errors.
$config['debug'] = false;

#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;

#------------
#URL Settings
#------------

#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';

#--------------
#Image Settings
#--------------

#Which program should be used for handling thumbnails in the image manager.
#See http://wiki.cmsmadesimple.org/index.php ... ge_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';

#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/content/a/d/v/advbalmar/html/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';


#------------------------
#Locale/Encoding Settings
#------------------------

#Locale to use for various default date handling functions, etc.  Leaving
#this blank will use the server's default.  This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = '';

#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8.  If you'd like this to be different, change
#both.  Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding.  This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';

#---------------------------------------------
#Use the old stylesheet logic?  It's much slower, but it works with older
#versions of CMSMS.  You'll also need this set to true if there is a module
#that uses a stylesheet callback.  Leave it as false instead you really
#need it.
$config['old_stylesheet'] = false;

# URL of the Admin Panel section of the User Handbook
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php ... dmin_Panel';

#Enable backwards compatibility mode?  This basically will allow some
#modules written before 1.0 was released to work.  Keep in mind that this
#will use a lot more memory and isn't guaranteed to fix the problem.
$config['backwards_compatible'] = false;

#Not used anymore... kept around, just in case
$config['disable_htmlarea_translation'] = false;
$config['use_Indite'] = true;
?>
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Unable to upload images...?

Post by calguy1000 »

You don't mention which version of CMS you're using.... the file manager was replaced in 1.2 so it's kinda important.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: Unable to upload images...?

Post by chotaboy »

srry its this version
1.1.2

so wait theres a new version? i didnt even know

u think upgrading would fix the issure?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Unable to upload images...?

Post by calguy1000 »

well.... a) you should upgrade anyways (security issues)..... and CMS 1.2.2 has significant changes to solve the uploaded files problems.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: Unable to upload images...?

Post by chotaboy »

so i upgraded and

well the file manager works

i really like the way it looks

im running the admin mod glassy_blue

so it looks sweet :)

but i still have an issue with the upload in fckEditorX

u think its the editor? seems to work in all my other sites quite well ... i just know i f"d something up...but what?

i try to create a folder and it says  "no permissions to create folder" the dropdown has nothing but images. flash and other stuff is missing from the dropdown ...?

what ya thinkis missing? is ther anyother info u need me to post?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Unable to upload images...?

Post by calguy1000 »

I know we tweaked the resource manager in TinyMCE to support the latest changes in the 1.2.x series... but I don't think those  changes have been carried through to FCK yet.... as FCK doesn't come with the core, it may be a little behind.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: Unable to upload images...?

Post by chotaboy »

same happens in tinymce
the included one


i cant seem to find connector.php
to see what the includes are and

is there possibly another config file somewhere?

this is weired

i uninstalled fck editor


and tstil when i hit

insert/add images and get the pop up and browse button in timy mce

the path on pop up is connector.php

but after that it says fckeditor

ican figure this outr
Pierre M.

Re: Unable to upload images...?

Post by Pierre M. »

Hello,

do you still have ugly backslashes in your paths in your config.php ?

Pierre M.
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: Unable to upload images...?

Post by chotaboy »

are you dsaying that these

'/home/content/a/d/v/advbalmar\tmp\cache';

should look like these

'/home/content/a/d/v/advbalmar/tmp/cache';

? ill try it hope it works?


if im understanding wrong please let me know!
Pierre M.

Re: Unable to upload images...?

Post by Pierre M. »

chotaboy wrote: are you dsaying that these

'/home/content/a/d/v/advbalmar\tmp\cache';

should look like these

'/home/content/a/d/v/advbalmar/tmp/cache';
Yes. Try it.

Pierre M.
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: Unable to upload images...?

Post by chotaboy »

sweeet!

i jnew it was simple!

thx a bunch!
Locked

Return to “CMSMS Core”