View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012683 | mantisbt | html | public | 2011-01-12 20:48 | 2011-08-05 02:36 |
| Reporter | mbtuser11 | Assigned To | atrol | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.2.4 | ||||
| Summary | 0012683: Newlines (\r\n) not being displayed in Mantis 1.2.4 bug view | ||||
| Description | This may be happening on my server only. I have setup Mantis 1.2.4 on a RHEL5/CentOS system and when creating a bug I'm able to enter newlines in the description box without problems. When displaying it however, the newlines are not retained. In the MySQL db, they are present as \r\n How can I get Mantis to display these newlines correctly? For example, this: with new lines above and here as well" Shows up as: | ||||
| Tags | No tags attached. | ||||
|
Do you get the newlines from this issue? |
|
|
Hi atrol - Were you pointing to another bug because I can't see it in your note. |
|
|
I am talking about the newlines you entered in the description of this issue. |
|
|
Both newlines in the description box and notes are being "lost" when displaying. Is there something specific I have to do with respect to PHP settings and/or something at the Mantis-level configuration for it to display properly? |
|
|
I have to ask again: |
|
|
Hi - sorry, I didnt understand what you meant earlier. I have no problems seeing the newlines in "THIS" bug (0012683), only all the bugs on my Mantis setup. |
|
|
I am not able to reproduce the issue in my test installations. Did you install any plugin? |
|
|
No. I did import a database from an older Mantis version into a newer / more recent one - that's it. I understand that others and you won't be facing this problem and that's fine. There is distinctly something in my Mantis or server setup which is causing this. Can you help me identify what PHP settings might be affecting this? |
|
|
Do you get the problem only when looking at your old imported issues or also when entering new issues? |
|
|
Thanks for the continued follow-up atrol... I'm seeing the same issue for the imported as well as the newly created ones. |
|
|
create a file test.php in root directory of your MantisBT installation with the following content
Run the script Do you get 1 or 2 lines output? |
|
|
Thanks atrol - I get them on different lines when its at www.mysite.com as well as when its at www.mysite.com/mantis/ |
|
|
In php.ini, I changed But that did not work. |
|
|
ATM I have no idea what's happening. |
|
|
I was getting two errors because one of the tables, I deleted this table as it didnt seem to exist in the default setup of Mantis 1.2.4 - this led to the two errors being resolved, but didnt solve my newlines problem. |
|
|
Seems that your current installation is not standard. |
|
|
The installation of Mantis 1.2.4 is standard. However, when importing the old content, I did the following relevant steps:
Because I was using mysql < file.sql format to import data, a new table would have been created which existed in the old Mantis setup but not in the new (1.2.4). |
|
|
read file doc/INSTALL chapter UPGRADING for the recommended way how to upgrade. |
|
|
Thanks atrol! That solved the problem exactly. I also restored / set mantis_config_table to its 1.2.4 value INSERT INTO |
|
|
Reminder sent to: dhx David, do you think that your new checking system in version 1.3 should also check that MantisCoreFormatting plugin is active? |
|
|
I'm keen on removing MantisCoreFormatting completely (or at least removing the part where it escapes HTML). If we do end up keeping it then I do agree that we should have checks in place to ensure it is loaded. |
|