Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Strange charicters


Reply


2 Posts   1152 Views

Avatar
nez

Community Member, 4 Posts

23 June 2011 at 5:09am

Weird symbols keep flooding this page and this is the error i get on the back end for it. any help would be appreciated. Also their is problem with the Cache the page will give this error all the time and i have to manually delete everything in my temp cache folder."Sorry, there was a problem with handling your request."

ERROR [Warning]: htmlentities(): Invalid multibyte sequence in argument
IN POST /admin/getitem?ID=2&ajax=1
Line 59 in /var/www/vhosts/clarencenorris.com/clarencenorris.com/httpdocs/sapphire/forms/HtmlEditorField.php

Source
======
50:          array (
51:             'class' => $this->extraClass(),
52:             'rows' => $this->rows,
53:             'cols' => $this->cols,
54:             'style' => 'width: 97%; height: ' . ($this->rows * 16) . 'px', // prevents horizontal
scrollbars
55:             'tinymce' => 'true',
56:             'id' => $this->id(),
57:             'name' => $this->name
58:          ),
* 59:          htmlentities($value->getContent(), ENT_COMPAT, 'UTF-8')
60:       );
61:    }
62:    
63:    public function saveInto($record) {
64:       if($record->escapeTypeForField($this->name) != 'xml') {
65:          throw new Exception (

Trace
=====
<ul>htmlentities(<p>�</p>
<table style="width: 610px;" border="0" align="center"><tbody><tr><td align="left"><img class="leftAlone" src="assets/Uploads/from%20title.png" width="365" height="116" alt="" title=""/></td>
<td/>
<td style="width: 10px;" rowspan="2" valign="top">
<p><img class="left" src="assets/Uploads/alternative-health-phone-number.png" width="242" height="40" alt="" title=""/></p>
<p> </p>
<p> </p>
<p><img class="left" src="assets/Uploads/DR-profile2.png" width="236" height="379" alt="" title=""/></p>
</td>
</tr><tr valign="top"><td>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">I have known since high school that I wanted to be involved with people. I thought I wanted to be a medical doctor until my junior year, when I was working at a bakery and passed out at the sight of blood.<br/><br/>In 1967 I was drafted into the U.S. Army and became a medic after ten weeks of training at Ft. Sam Houston in San Antonio, Texas. It was the Vietnam era, and they were graduating five hundred medics a week. One week after my graduation I was transferred to Japan. I arrived fifteen miles north of Tokyo at 249th General Hospital, where my medical training really began. I was given the duty of changing the dressings of land mine and gunshot wound victims. After the first dressing change of these infected and odorous wounds, I knew that in two years I would be heading back to the U.S. to achieve my goal of becoming a medical doctor.</p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">In 1977 I graduated from medical school. After two years of General Surgery residency in New Haven, Connecticut, I completed three years of Physical Medicine and Rehabilitation residency in Dallas, Texas, and two years of General Practice in Dawson, Georgia. After that, I completed a three-year residency in Family Practice in Columbus, Georgia. I then moved to North Carolina and began my journey of practicing alternative as well as traditional medicine. I prescribe natural supplements when I can and prescription drugs when indicated.</p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">I have always wanted to treat the whole person and not just certain organs of the body, because everything works together as one. My goal is to seek the reason for the disease, illness, or particular ailment and not to just treat the symptoms. When I write prescriptions, I also look for what damage the prescription drug may cause the body and look at what may counter the side effects of the medicine. I also prescribe vitamins, minerals, herbs, and other supplements and treatments, combining the best of both worlds of medicine because we need both sides.</p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Through studies in quantum physics, we now understand that everything in the universe has a vibration. High vibrations benefit the body and strengthen the muscles. Low vibrations weaken the body and its muscles. In addition to laboratory testing, I treat patients by testing an indicator muscle to get biofeedback from the body. The body is response to vibration helps to determine what may be causing a health problem and what needs to be done to correct it.</p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">No one knows your body better than you. We physicians have often failed to listen to our patients, thinking we have all the answers without listening. We've also allowed the medical system, as well as the insurance companies, to control how much time we spend with our patients until they become seriously ill and hospitalized. I will listen to you because I am truly concerned about your health. When you enter my exam room, you are the most important person, and I will give you my utmost attention. I want you to be healthy,physically, mentally, emotionally, and spiritually, and have a good quality of life.</p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">...When I finished my medical training, I thought I knew a lot. Now, the more I learn, the more I realize there is so much more yet to learn. And I will continue learning every day, including learning from patients like you, who work hard to achieve true healing.</p>
</td>
<td style="width: 30px;"> </td>
</tr></tbody></table>,2,UTF-8)
line 59 of HtmlEditorField.php

HtmlEditorField->Field()
line 369 of ViewableData.php

ViewableData->obj(Field,,,)
line 446 of ViewableData.php

ViewableData->XML_val(Field)
line 409 of FormField.php

FormField->FieldHolder()
line 369 of ViewableData.php

ViewableData->obj(FieldHolder,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(FieldHolder,,1)
line 73 of .cache.sapphire.templates.TabSetFieldHolder.ss

include(/var/www/vhosts/clarencenorris.com/clarencenorris.com/httpdocs/silverstripe-cache/.cache.sapphire.templates.TabSetFieldHolder.ss)
line 420 of SSViewer.php

SSViewer->process(TabSet)
line 342 of ViewableData.php

ViewableData->renderWith(TabSetFieldHolder)
line 80 of TabSet.php

TabSet->FieldHolder()
line 369 of ViewableData.php

ViewableData->obj(FieldHolder,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(FieldHolder,,1)
line 58 of .cache.sapphire.templates.TabSetFieldHolder.ss

include(/var/www/vhosts/clarencenorris.com/clarencenorris.com/httpdocs/silverstripe-cache/.cache.sapphire.templates.TabSetFieldHolder.ss)
line 420 of SSViewer.php

SSViewer->process(TabSet)
line 342 of ViewableData.php

ViewableData->renderWith(TabSetFieldHolder)
line 80 of TabSet.php

TabSet->FieldHolder()
line 369 of ViewableData.php

ViewableData->obj(FieldHolder,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(FieldHolder,,1)
line 77 of .cache.sapphire.templates.Includes.Form.ss

include(/var/www/vhosts/clarencenorris.com/clarencenorris.com/httpdocs/silverstripe-cache/.cache.sapphire.templates.Includes.Form.ss)
line 420 of SSViewer.php

SSViewer->process(Form)
line 342 of ViewableData.php

ViewableData->renderWith(Array)
line 1108 of Form.php

Form->forTemplate()
line 1135 of Form.php

Form->formHtmlContent()
line 391 of LeftAndMain.php

LeftAndMain->getitem(SS_HTTPRequest)
line 193 of Controller.php

Controller->handleAction(SS_HTTPRequest)
line 143 of RequestHandler.php

RequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.php

Controller->handleRequest(SS_HTTPRequest)
line 282 of Director.php

Director::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.php

Director::direct(/admin/getitem)
line 127 of main.php

include(/var/www/vhosts/clarencenorris.com/clarencenorris.com/httpdocs/sapphire/main.php)
line 102 of static-main.php

</ul>

Avatar
swaiba

Forum Moderator, 1804 Posts

23 June 2011 at 6:02am

bit of info on strange characters in these threads...

http://www.silverstripe.org/general-questions/show/16915
http://www.silverstripe.org/general-questions/show/17036