Problems, need help? Have a tip or advice? Post it here.
9 posts Page 1 of 1
Hello,

I am on Couch CMS v2.0. I am following this tutorial http://docs.couchcms.com/tutorials/portfolio-site/blog.html. When I add:

Code: Select all
<cms:template title='Themepost'>
   <cms:editable name="content" type="richtext" />
   
   <cms:editable name="Thumb_Preview" type="image" crop="1" width="550" height="1053" />
</cms:template>


Then I open my admin, I got:


Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KSession::get_flash_handler() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/parser/parser.php on line 372

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97

Deprecated: Non-static method KFuncs::_handle_extends() should not be called statically in /opt/lampp/htdocs/couch-cms/admin/event.php on line 97
ERROR: Tag "input" 'name' contains invalid characters. (Only lowercase[a-z], numerals[0-9] hyphen and underscore permitted

Am I doing something wrong?

As I discussed in your other thread, I am in the process of quashing those 'Deprecated:' warning messages and will push a commit soon.
Those, while being bothersome, will not prevent the admin-panel from opening.

The reason for the problem is actually stated in the 'ERROR' message being reported on the last line -
ERROR: Tag "input" 'name' contains invalid characters. (Only lowercase[a-z], numerals[0-9] hyphen and underscore permitted

The 'input' tag being referred to is the following with the problem 'name' attribute highlighted -
<cms:editable name="Thumb_Preview" type="image" crop="1" width="550" height="1053" />

Please change the name so as to make it use only lowercase characters, for example as follows, and that should fix the issue
<cms:editable name="thumb_preview" type="image" crop="1" width="550" height="1053" />

Hope it helps.

Thanks KK!

Hello KK,

Just minor report, I have edited to
Code: Select all
<cms:editable name="thumb_preview" type="image" crop="1" width="550" height="1053" />


But the message "ERROR: Tag "input" 'name' contains invalid characters. (Only lowercase[a-z], numerals[0-9] hyphen and underscore permitted" persists. Do I need to wait some minutes to see the change to take effects?

Re:

atorui wrote:
Just minor report, I have edited to
Code: Select all
<cms:editable name="thumb_preview" type="image" crop="1" width="550" height="1053" />


But the message "ERROR: Tag "input" 'name' contains invalid characters. (Only lowercase[a-z], numerals[0-9] hyphen and underscore permitted" persists. Do I need to wait some minutes to see the change to take effects?


@atorui
Please log into the admin panel and then refresh the front end page where you have
Code: Select all
<cms:editable name="thumb_preview" type="image" crop="1" width="550" height="1053" />

then refresh the admin panel and again refresh the front end. Please use Ctrl+F5 (F5 = Function Key 5) for all refreshes

The changes should be picked up.

Please let us know if the problem is solved or still persists once you have followed the above steps.
Image
where innovation meets technology

Works! Who knows if this is the way. Again I want to report something.

Previously I create the same editable region:
Code: Select all
<cms:editable name="aha" type="image" crop="1" width="550" height="1053" />


Then I delete this. When I go to admin panel, it is showed in admin panel a red message inside a red box, something like "tag not found". There are two options: "view code" and "delete permanently". I refresh three or five times for this. But this message persists. I opted "delete permanently", and the red message was gone.

So in the admin panel, shouldn't the message be just gone as I delete the front-end code?

Re:

atorui wrote: Works! Who knows if this is the way. Again I want to report something.

Well yes this is the way. The admin panel picks up the changes only if the you are signed into the admin panel as a preferably Super User (or Administrator). And for the changes to persist, you refresh the front end, come back to the backend and refresh. That is standard procedure.

atorui wrote: Previously I create the same editable region:
Code: Select all
<cms:editable name="aha" type="image" crop="1" width="550" height="1053" />


But this message persists. I opted "delete permanently", and the red message was gone.

So in the admin panel, shouldn't the message be just gone as I delete the front-end code?

You choose the correct thing to do, i.e. selected "Delete Permanently".
Front-end code, what you are referring to is not the front end code, in simple words, <cms:editable ...... /> is not front end. It the the connection to the back end. Even if you remove such a region, you are just deleting its definition. still the region exists in the Database. In order to allow the admin panel to pick up the changes that have occurred you refresh both front and back ends and then you get the red box. When you now select the "Delete Permanently" option, this DB entry is removed. This tells couch that its gone now and the system need not display it in the admin panel. This is also standard procedure.

During deletion of the region, all data associated with the region will also be deleted (as far as i know).
Image
where innovation meets technology

So that's how it works. Thanks mate!

@atorui
You are welcome!
Image
where innovation meets technology
9 posts Page 1 of 1