Page 1 of 1

In 1.11.2, Microtiny wrong image-path [solved in 1.11.3]

Posted: Tue Oct 16, 2012 11:33 am
by janvl
Hi,

I made a clean install of 1.11.2
did some "design" very very basic.

Made a few pages.

Now if I open a page in Microtiny and I want to load an image it shows the popup-window, I can select an image from directory /uploads/images if I click on insert the place-holder is there but no image.

Checking the HTML then I find
<img src="http:/www2/uploads/images/zoekknop.png" alt="" />

It should be
<img src="http:/www.versicherungsagentur-stadler.at/uploads/images/zoekknop.png" alt="" />

I run the site in a subdirectory www2 on the host.

I changed the config.php to

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'database-user with right name';
$config['db_password'] = 'the fitting password';
$config['db_name'] = 'the fitting database name';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Europe/Vienna';
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = false;
$config['db_port'] = 0;
$config['persistent_db_conn'] = 'true';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.versicherungsagentur-stadler.at';
$config['ssl_url'] = 'https://www.versicherungsagentur-stadler.at';
$config['root_path'] = '/is/htdocs/wp10566801_82DASFO894/www2';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/is/htdocs/wp10566801_82DASFO894/www2/tmp/cache';
$config['uploads_path'] = '/is/htdocs/wp10566801_82DASFO894/www2/uploads';
$config['uploads_url'] = 'http://www.versicherungsagentur-stadler.at/uploads';
$config['max_upload_size'] = 8000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'none';
$config['page_extension'] = '';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/is/htdocs/wp10566801_82DASFO894/www2/uploads/images';
$config['image_uploads_url'] = 'http://www.versicherungsagentur-stadler.at/uploads/images';
$config['ssl_uploads_url'] = '/uploads';
$config['locale'] = 'de_DE.utf8';
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
?>
I cleared the cache but I still get the same problem.

Where is this URL produced?
And how do I change it?

[edit]
The following PHP-error is in the logging, double www2

Code: Select all

[Tue Oct 16 11:07:08 2012] [error] [client 212.89.171.111] File does not exist: /is/htdocs/wp10566801_82DASFO894/www2/www2, referer: http://www.versicherungsagentur-stadler.at/admin/moduleinterface.php?mact=MicroTiny,,filepicker,0&_sx_=d5d1c64d&type=image&showtemplate=false
[edit 2]
De-installing Microtiny and installing again does not work.
Installing TinyMCE and changing to TinyMCE works.
Another clean-install does not have this problem.

Kind regards,
Jan

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Oct 16, 2012 2:50 pm
by Jo Morg
janvl wrote:I changed the config.php to....
Compared to mine your config.php is HUGE!
CMSMS has defaults to the majority of these settings and should work with these out of the box...
I would revert to the default "after install" config.php. Also check Documentation: /doc/CMSMS_config_reference.pdf to see what you really need to change IF anything doesn't work properly. IIRC some of the settings you have are deprecated...

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Oct 16, 2012 3:10 pm
by janvl
Hi

this is a config.php like it was in former versions.

I had a small one too with about 6 lines.

I have an updated site and another clean install where I do not have this problem so I wonder what causes this, it must be a Microtiny specific problem.

Kind regards,
Jan

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Oct 16, 2012 7:00 pm
by Dr.CSS
That is not a config.php from a clean install, it would never make that many lines in it, obviously some of your paths are incorrect...

Put the install folder from the version you use, run install/install.php but
IN STEP 5 DON'T CREATE TABLE OR INSTALL DEFAULT CONTENT this will fix any path problems...

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Oct 16, 2012 7:53 pm
by janvl
Hi Dr. CSS

"That is not a config.php from a clean install"
That is right, I copied it from an install from a former version and corrected the path's and the DB connection.

I will strip it to the original from the clean install and see if TinyMCE keeps working.

I wonder why there is no way of completly de-installing MicroTiny.

During the weekend I may try running install again.

Kind regards,
Jan

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Nov 13, 2012 11:45 am
by janvl
One cannot de-install and install microtiny because there is no install-file for microtiny, nor in "downloads - modules" nor in forge.

So if de-installed I do not see a possibility to install again.

I now have another fresh install with the same problem.
I did some digging in the php-files and found that $fpurl (filepicker url) seems not to be set.

Does some one have an idea on how to tackle the problem otherwise then to install tinymce?

Regards,
Jan

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Nov 13, 2012 4:54 pm
by calguy1000
This is an issue with FileManager and ImageManager when in advanced mode, on some hosts.

I could not reproduce this issue on any of my test installs.
But could on a new test install on a remote server.

I'm looking into it, and hopefully get it fixed for 1.11.3

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Nov 13, 2012 8:42 pm
by janvl
Hi,

thank you for confirming, I was getting doubts about myself.
I will put the user on TinyMCE for the time being.

Kind regards,
Jan

Re: Version 1.11.2, Microtiny wrong image-path

Posted: Tue Nov 13, 2012 8:43 pm
by janvl
Hi,

I just 14-11-2012 23.30 made another clean install on the same kind of hosting with the same hoster and with 1.11.2.1 the path just after the install is [edit looks] ok.

I wonder, usually with installs Like this I build up the site under a temporarily root-url and after that the real root-url will be pointing to the site, is that a probable cause?

[EDIT 17.11]
I have to take that back. I am taking over content from a Plone-site into a CMSMS Site and the url-path in microtiny is wrong as described above.

Kind regards,
Jan