insert/edit image returns absolute path?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

[2] Re: insert/edit image returns absolute path?

Post by pt20100201 »

.
Hi,
Thorsten wrote:I need your help. Please open admin/editor/plugin/ajaxfilemanager/inc/config.base.php and goto line 112 ...
Thorsten wrote: did you use $_SERVER['DOCUMENT_ROOT] or the "hard" path?
maorui wrote:I didn't change the DOCUMENT_ROOT but used alias.
Alias /phpmyfaq "/opt/phpmyfaq"
The proposed solution didn't worked in our case, and we already had a symbolic link to phpMyFAQ's installation path.

We found an almost working solution to that problem - it will be inserted later in this thread with screenshots.

It uses an absolute path on another line of code. When we use it, an error message is displayed but the inserted links are correct.

Error message:

Code: Select all

phpMyFAQ warning[2]: Invalid error type specified in class.manager.php on line 235
Kind regards

2011-04-27
pt20100201
.
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: insert/edit image returns absolute path?

Post by Thorsten »

HI,

it would be great if you can post your solution. This issue is a 2.6.16 release blocker. :-)

Thanks for your help!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

[Screenshots][partial]Re: insert/edit image returns absolute

Post by pt20100201 »

.
[Screenshots][partial] Re: insert/edit image returns absolute path?
.
Dear Thorsten
Thorsten wrote: it would be great if you can post your solution. This issue is a 2.6.16 release blocker. :-)
Our apologies for this late reply.

This post doesn't contain all screenshots that we would like to insert (a step-by-step sequence), but there are three attached images that (meanwhile) may be of help.
  • Changing line 112 doesn't work for us.
    Changing line 52 with a absolute path to the webserver root folder / image folder works (even with the displayed error message).
  • With the original configuration the displayed image link is OK - but the result is an absolute path to phpMyFAQ installation folder/image.
    Right clicking an image on the list (when possible) opens it correctly in the browser.
We hope to send more details soon (perhaps by direct mail - due to configuration path information issues).

The configuration screenshots refer to the original version.

[attachment=2]pt20100201-20100503-screenshot-01-tinymce-L112.png[/attachment]
[attachment=1]pt20100201-20100503-screenshot-02-tinymce-L51.png[/attachment]
[attachment=0]pt20100201-20100503-screenshot-03-tinymce-insert.png[/attachment]

.
Kind regards

2011-04-27
pt20100201
.
You do not have the required permissions to view the files attached to this post.
pt20100201
Posts: 134
Joined: Mon Feb 01, 2010 2:11 pm
Location: Porto . Portugal
Contact:

[Final configuration examples] Re: insert/edit image returns

Post by pt20100201 »

.
[Final configuration examples] Re: insert/edit image returns absolute path?
.
Dear Thorsten Rinne

We've sent to you (by direct mail - due to path restrictions,...) the last file with configuration tests performed some time ago (and their results).

As with the previous documents, the file contains a sequence of screenshots.

This third (and last) file contains our first developed version of an "almost" functional configuration - please compare it with the present in part one.

We hope that the information is useful for you.
.
Kind regards,
2011-05-05
pt20100201
.
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: insert/edit image returns absolute path?

Post by Thorsten »

Hi,

thanks a lot. I'll check it and if everything's okay I'll release these fixes in 2.6.16.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply