En:Why do script calls not work correctly?

From phpCMS

Jump to: navigation, search

Question: Why do script calls not work correctly?

I have inserted a script with {SCRIPT_name} in a content page. When I call the page, I only see "[*SCRIPT_name*]" where the output of the script should be.

Answer:

Internally phpCMS marks the script call with "[* ... *]", in replacement for the "{ ... }". After the parser has processed the page, it will search in a second run for these marks and call the scripts to insert the output.
If there is a [*SCRIPT_name*] on the screen, then that second run has not been successful.

There are two known reasons for this to happen:

  1. Possibly there is an old "cookie", left over from a former online editing session (in editing mode the parser does not execute inserted scripts).
    • Solution: Delete your cookies and try again.
  2. The parser recognizes scripts only by the "[*" ... "*]" marks. If in your tag file you have some replacement definitions for one of the used tokens "[*" or "*]", the parser cannot find the script anymore.

(Original entry by Ignatius)

Diese Seite in anderen Sprachen: Deutsch

Main Page: FAQ MainPage | Top Page: English FAQ MainPage

Personal tools