CMSMS 1.6.6 - Browse to insert image still brings up login page

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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

jmires wrote: I haven't heard anything new since my last post on Oct 12, where I copied the site to a subdomain so we could turn on debug mode and they could investigate further.
Urr  :-\ I'm sorry jmires, but I didn't read your post of Oct. 13th yet! I was waiting for a reaction from your side...
Perhaps I accidentally unsubscribed myself for mails from this topic. By coincidence I saw your last forum post yesterday on my mobile phone.
I'm on it again  ;)

@Graeme,
If you have the same problem, please provide us with information from your website which could lead to a solution... Or lead to reproducing this issue.

Grtz. Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Okay, that helped!!!  :D
Debug display of 'End of include':(0.320548) - (5065748)
Debug: (0.320685) - (5023852)

No session found.  Now check for cookies

Debug: (0.320749) - (5023852)

No cookies found.  Redirect to login.
and now...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Graeme
Forum Members
Forum Members
Posts: 23
Joined: Tue Dec 23, 2008 5:28 am

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Graeme »

Thanks,

Does this many there are lots of users out there that can't insert images or is it limited to those on the latest version?

BR


Graeme
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Graeme wrote: Does this many there are lots of users out there that can't insert images or is it limited to those on the latest version?
No, I really don't think soo... If that was the case the forum would flooded with questions!
A few people have these problems and at the moment it looks like the server settings are the problem...  :-\

Regards, Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
merrony
New Member
New Member
Posts: 7
Joined: Thu Oct 08, 2009 10:19 am

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by merrony »

I am suddenly seeing this problem after upgrading to the latest (1.6.6).  Everything was fine in 1.6.5...

Let me know if I can provide more info to help.

Steve
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Merrony wrote: I am suddenly seeing this problem after upgrading to the latest (1.6.6).  Everything was fine in 1.6.5...
Hmm   :(

Any info which could lead to reproducing this issue is very welcome!

Please put your System Information here.
Any errors in the error_log?
Any errors when debug is on?

Thanks Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Theo wrote: It seems that problem is in permissions for writing webserver to session.save_path directory, or in existing that directory (usually /tmp). So my advice is to check/change ownership/permissions for that directory or contact your hosting administrator to do that.
Thanks for your reply, Theo.

If that is the case you could also try to create a new folder in the root of the site with the FileManager, named f.e. 'sessiontemp'
Add into (or create) the .htaccess file in the root of the website:

Code: Select all

php_value session_save_path "sessiontemp"
The new folder is created by CMSMS so it is the owner, writing shouldn't be a problem then [ I hope...  ;) ]

Jmires, Graeme and Merrony, please try these possible solutions and we will wait for your reply.

Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
merrony
New Member
New Member
Posts: 7
Joined: Thu Oct 08, 2009 10:19 am

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by merrony »

Hmmm...

I'm more puzzled than ever now.  Today there is no problem.  The only thing I have (knowingly) done is to Clear the Cache.

I seriously doubt the directory permissions theory - mine is set to /tmp and that has drwxrwxrwt permissions - so anyone can do anything in it.

(Do you really want all the CMSMS System Info put in here?)

Steve
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

theo wrote:I cannot do this exactly as you suggest (because I running CMSMS on lighttpd), but it worked when I change save_path in php.ini.
Doesn't matter how it is solved, aslong as it is solved  ;) I hope this will work for the others as well! Letting the host CHange OWNership is the cleanest solution.
theo wrote:I find this solution by turning on the debug mode in config.php (there was a warning message on the end of page), and this could be also the reason why you cannot find this problem so easy
Reproducing wasn't an option, debug gave errors but nothing which lead to file permissions or ownership (See post #16)

merrony wrote:I'm more puzzled than ever now.  Today there is no problem.  The only thing I have (knowingly) done is to Clear the Cache.
I saw this behaviour on the website from Jmires and like you said, the problem isn't facing every time.
merrony wrote:I seriously doubt the directory permissions theory - mine is set to /tmp and that has drwxrwxrwt permissions - so anyone can do anything in it.
Permission (CHMOD) is something else as Ownership (CHOWN) of a file. But you are right, the combination is strange. But what do we have to loose  ;) There isn't much to work on.
merrony wrote: (Do you really want all the CMSMS System Info put in here?)
Yes, please. You can use the copy function and you can take the urls out of it, if you want...
There are a few people having this problem and nobody has reproduced the problem yet. Soo everything which could lead to a solution is welcome...

Rolf  ;)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
merrony
New Member
New Member
Posts: 7
Joined: Thu Oct 08, 2009 10:19 am

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by merrony »

As you asked for it...

CMS Install Information:

CMS Version

1.6.6

Installed Modules

CMSMailer

1.73.14

ModuleManager

1.3.1

nuSOAP

1.0.1

Search

1.6.1

ThemeManager

1.1.1

Thumbnails

0.1.1

EventsListing

1.4

Album

0.9.3

FileManager

1.0.1

MenuManager

1.6.2

News

2.10.3

Printing

1.0.4

TinyMCE

2.5.5

Config Information

php_memory_limit:



process_whole_template:

false

max_upload_size:

12000000

default_upload_permission:

664

assume_mod_rewrite:

false

page_extension:



internal_pretty_urls:

true

use_hierarchy:

true

debug:

false

output_compression:

false

root_url:

http://www.xxxxxxxx.org

root_path:

/var/www/htdocs/EDCS (0755) Failure ?

previews_path:

/var/www/htdocs/EDCS/tmp/cache (0777) Success

uploads_path:

/var/www/htdocs/EDCS/uploads (0777) Success

uploads_url:

http://www.xxxxxxxxx.org/uploads

image_uploads_path:

/var/www/htdocs/EDCS/uploads/images (0777) Success

image_uploads_url:

http://www.xxxxxxxx.org/uploads/images

use_smarty_php_tags:

false

locale:



default_encoding:

utf-8

admin_encoding:

utf-8
PHP Information:

Current PHP Version (phpversion):

5.3.0 Success

md5 function (md5_function):

On (True) Success

GD version (gd_version):

2 Success

tempnam function (tempnam_function):

On (True) Success

Magic quotes in runtime (magic_quotes_runtime):

Off (False) Success

PHP Effective Memory Limit (memory_limit):

128M Success

Maximum Execution Time (max_execution_time):

300 Success

PHP Safe Mode (safe_mode):

Off (False) Success

Session Save Path (session_save_path):

/tmp (1777) Success

Session Use Cookies (session.use_cookies):

On (True) Success

Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file):

Success

PHP register_globals (register_globals):

On (True) Caution ?

PHP output_buffering (output_buffering):

4096 Success

disable_functions in PHP (disable_functions):

 Success

PHP Open Basedir (open_basedir):

 Success

Test for remote URL (test_remote_url):

Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success

File uploads (file_uploads):

On (True) Success

Maximum Post Size (post_max_size):

32M Success

Maximum Upload Size (upload_max_filesize):

12M Success

Basic XML (expat) support (xml_function):

On (True) Success

Test file_get_contents (file_get_contents):

On (True) Success

Test ini_set (check_ini_set):

On (True) Success
Server Information:

Server API (server_api):

apache2handler

Server Database (server_db_type):

PostgreSQL (postgres7)

Server Database Version (server_db_version):

8.2.4 Success

Server Software (server_software):

Apache/2.2.11 (Unix) DAV/2 mod_python/3.3.1 Python/2.5.1 PHP/5.3.0 mod_auth_pgsql/2.0.3

Server Operating System (server_os):

Linux 2.6.29.1-shm On i686

Permission Information

tmp:

/var/www/htdocs/EDCS/tmp (0777) Success

templates_c:

/var/www/htdocs/EDCS/tmp/templates_c (0777) Success

modules:

/var/www/htdocs/EDCS/modules (0777) Success

File Creation Mask (umask):

/var/www/htdocs/EDCS/tmp/cache (0777) Success

config_file:

0666 Failure
config.php writable. It is more safe if you change permission to read-only
merrony
New Member
New Member
Posts: 7
Joined: Thu Oct 08, 2009 10:19 am

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by merrony »

OK - here goes...

CMS Install Information:

CMS Version

1.6.6

Installed Modules

CMSMailer

1.73.14

ModuleManager

1.3.1

nuSOAP

1.0.1

Search

1.6.1

ThemeManager

1.1.1

Thumbnails

0.1.1

EventsListing

1.4

Album

0.9.3

FileManager

1.0.1

MenuManager

1.6.2

News

2.10.3

Printing

1.0.4

TinyMCE

2.5.5

Config Information

php_memory_limit:



process_whole_template:

false

max_upload_size:

12000000

default_upload_permission:

664

assume_mod_rewrite:

false

page_extension:



internal_pretty_urls:

true

use_hierarchy:

true

debug:

false

output_compression:

false

root_url:

http://www..org

root_path:

/var/www/htdocs/EDCS (0755) Failure ?

previews_path:

/var/www/htdocs/EDCS/tmp/cache (0777) Success

uploads_path:

/var/www/htdocs/EDCS/uploads (0777) Success

uploads_url:

http://www..org/uploads

image_uploads_path:

/var/www/htdocs/EDCS/uploads/images (0777) Success

image_uploads_url:

http://www..org/uploads/images

use_smarty_php_tags:

false

locale:



default_encoding:

utf-8

admin_encoding:

utf-8
PHP Information:

Current PHP Version (phpversion):

5.3.0 Success

md5 function (md5_function):

On (True) Success

GD version (gd_version):

2 Success

tempnam function (tempnam_function):

On (True) Success

Magic quotes in runtime (magic_quotes_runtime):

Off (False) Success

PHP Effective Memory Limit (memory_limit):

128M Success

Maximum Execution Time (max_execution_time):

300 Success

PHP Safe Mode (safe_mode):

Off (False) Success

Session Save Path (session_save_path):

/tmp (1777) Success

Session Use Cookies (session.use_cookies):

On (True) Success

Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file):

Success

PHP register_globals (register_globals):

On (True) Caution ?

PHP output_buffering (output_buffering):

4096 Success

disable_functions in PHP (disable_functions):

  Success

PHP Open Basedir (open_basedir):

  Success

Test for remote URL (test_remote_url):

Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success

File uploads (file_uploads):

On (True) Success

Maximum Post Size (post_max_size):

32M Success

Maximum Upload Size (upload_max_filesize):

12M Success

Basic XML (expat) support (xml_function):

On (True) Success

Test file_get_contents (file_get_contents):

On (True) Success

Test ini_set (check_ini_set):

On (True) Success
Server Information:

Server API (server_api):

apache2handler

Server Database (server_db_type):

PostgreSQL (postgres7)

Server Database Version (server_db_version):

8.2.4 Success

Server Software (server_software):

Apache/2.2.11 (Unix) DAV/2 mod_python/3.3.1 Python/2.5.1 PHP/5.3.0 mod_auth_pgsql/2.0.3

Server Operating System (server_os):

Linux 2.6.29.1-shm On i686

Permission Information

tmp:

/var/www/htdocs/EDCS/tmp (0777) Success

templates_c:

/var/www/htdocs/EDCS/tmp/templates_c (0777) Success

modules:

/var/www/htdocs/EDCS/modules (0777) Success

File Creation Mask (umask):

/var/www/htdocs/EDCS/tmp/cache (0777) Success

config_file:

0666 Failure
config.php writable. It is more safe if you change permission to read-only
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Ho Ho Ho  :D Akismet anti spam is holding your posts, but they are there!!!

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Merrony wrote: root_path: /var/www/htdocs/EDCS (0755) Failure ?
previews_path: /var/www/htdocs/EDCS/tmp/cache (0777) Success
uploads_path: /var/www/htdocs/EDCS/uploads (0777) Success
uploads_url: http://www..org/uploads
image_uploads_path: /var/www/htdocs/EDCS/uploads/images (0777) Success

Permission Information

tmp: /var/www/htdocs/EDCS/tmp (0777) Success
templates_c: /var/www/htdocs/EDCS/tmp/templates_c (0777) Success
modules: /var/www/htdocs/EDCS/modules (0777) Success
File Creation Mask (umask): /var/www/htdocs/EDCS/tmp/cache (0777) Success
It looks like you have to set all folder permissions to 777  :-\ Fileowner issue... ??? http://forum.cmsmadesimple.org/index.ph ... l#msg44063
Merrony wrote: Current PHP Version (phpversion): 5.3.0 Success
CMS Made Simple doesn´t support PHP version 5.3.0 yet... http://www.cmsmadesimple.org/about-link/ #6. What are the system requirements? This could be creating problems...

For now, Rolf  ;)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
utopia
Forum Members
Forum Members
Posts: 16
Joined: Wed Oct 28, 2009 8:22 am

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by utopia »

I have been looking into this problem and it seems the issue is the browser URL that is generated for the filepicker when you click the browse button. It ends up looking like this:

http://www.site.com/modules/TinyMCE/fil ... type=image

You will see there are two ? after the PHP file. The check login script is looking for a URL parameter called "sp_" but there is only "?sp_". I therefore altered modules/TinyMCE/templates/tinyconfig.tpl by finding this line:

var cmsURL = "{$rooturl}/modules/TinyMCE/filepicker.php?{$urlext}&type="+type;

and replacing with:

var cmsURL = "{$rooturl}/modules/TinyMCE/filepicker.php{$urlext}&type="+type;

Seems to work for us.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CMSMS 1.6.6 - Browse to insert image still brings up login page

Post by Rolf »

Thanks for your input, Utopia. And welcome here on the forum ;)

Looked into the SVN on this...

Oct. 3 2009 Calguy made changes to this file Rev. 543
Changelog: "v2.4.5 - Modified to work with session.use_cookies = 0"

Code: Select all

var cmsURL = "{$rooturl}/modules/TinyMCE/filepicker.php{$urlext}&type="+type;
This changed file was included in the 1.6.6 (base) release...
So, please check if this file is in fact on your server, perhaps something went wrong during the upload...

Regards, Rolf
Last edited by Rolf on Wed Oct 28, 2009 6:48 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”