Topic on Project:Support desk

Upgraded to 1.28 and now my templates don't work

15
121.73.1.114 (talkcontribs)

I have just upgraded from 1.13 to 1.28 and my templates no longer work.

Can someone tell me what I am doing wrong please.

The template is as follows:

{{{name}}} {{{surname}}}

[[Image:{{{name}}}_{{{surname}}}.jpg|right|border|frame|10px|{{{name}}} {{{surname}}}]] Given Name: {{{name}}} {{{surname}}} Sex: {{{sex}}}

Parents


{{#vardefine: i | 1 }}{{#dowhile:

 | 
  |

{{#vardefine: i

   | Expression error: Unrecognized punctuation character "{".
 }}

}}

{{#vardefine: i | 1}} {{#vardefine: j | 1}} {{#while:

 | 
  |
  • {{{sname{{#var: i }}}}}, married on Unknown
Children{{#vardefine: j | 1}}{{#dowhile:
   | 
    |
  • None
   {{#vardefine: j | Expression error: Unrecognized punctuation character "{".

}} }}

 {{#vardefine: i | Expression error: Unrecognized punctuation character "{".

}} }}

And The result looks like this:

<<< I CUT OUT THE BIT THAT WORKS >>>>

Siblings {{#vardefine: i | 1 }}{{#dowhile:

| 
 |

{{#vardefine: i

  | Expression error: Unrecognized punctuation character "{".
}}

}}

Partners {{#vardefine: i | 1}} {{#vardefine: j | 1}} {{#while:

| 
 |

{{{sname{{#var: i }}}}}, married on Unknown Children{{#vardefine: j | 1}}{{#dowhile:

  | 
   |

None

  {{#vardefine: j | Expression error: Unrecognized punctuation character "{".

}} }}

{{#vardefine: i | Expression error: Unrecognized punctuation character "{".

}} }}

Ciencia Al Poder (talkcontribs)

Looks like you need to install or enable some of your old extensions

121.73.1.114 (talkcontribs)

Thanks - I will give it a go

121.73.1.114 (talkcontribs)

Please see my post above ----- Call to undefined method Message::escape() on Loops extension

AhmadF.Cheema (talkcontribs)
121.73.1.114 (talkcontribs)

Yes I did.

AhmadF.Cheema (talkcontribs)

What is the exact "Call to undefined method..." error that you are getting? Can you confirm it is related to Extension:Loops?

121.73.1.114 (talkcontribs)

<cut>PHP message: PHP Fatal error:  Call to undefined method Message::escape() in <cut>/Loops.php on line 360" while reading response header from upstream, client: <cut>

121.73.1.114 (talkcontribs)

<Bounce> Anyone got an answer?

Ciencia Al Poder (talkcontribs)
121.73.1.114 (talkcontribs)

Thank you - I have downloaded and installed 1.29 and installed the extensions, I ran the upgrade.

Now I am receiving the following message

"Maximum number of loops have been performed"

I have tried to set the loops to the  limits of phps environment by putting the following in LocalSettings.php

ExtLoops::$maxLoops = -1;

Am I doing the right thing???

Ciencia Al Poder (talkcontribs)

Reading the code, ExtLoops::$maxLoops = -1; should work, yes. Does it still break? You may need to purge the page (for example, by editing the page again and saving without doing modifications)

121.73.1.114 (talkcontribs)

I am still having great trouble with this.

I am unable to edit a page I receive the following error

[error] 2401#0: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Maximum execution time of 120 seconds exceeded in /mediawiki/includes/parser/Preprocessor_DOM.php on line 1170" while reading response header from upstream, client: <CUT>, request: "POST /mediawiki/index.php?title=<CUT>&action=submit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "helium", referrer: <CUT>

Ciencia Al Poder (talkcontribs)

Either your server is too slow, or there's something stuck in one of the MediaWiki scripts. Maybe removing the limit in the loops extension was not a good idea after all, it probably causes an endless loop somewhere. You should review the logic of your loop templates to find where the problem is.

121.73.1.114 (talkcontribs)

Strange it should be a logic problem as those templates worked fine in 1.13