Jump to content

Extension talk:Amp

About this board

does this extension need update ?

1
31.166.72.243 (talkcontribs)

this is my error log i was trying to fix without any luck there is no files created under ampfiles folder


any helps ?


best regards

AH01071: Got error 'PHP message: PHP Warning:  Invalid argument supplied for foreach() in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 69PHP message: PHP Warning:  Invalid argument supplied for foreach() in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 86PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 100 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 104 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 108 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 114 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 120 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 126 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  DOMDocument::loadHTML(): Tag bdi invalid in Entity, line: 132 in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 105PHP message: PHP Warning:  getimagesize(/images/thumb/e/ee/1391001.png/83px-1391001.png): failed to open stream: No such file or directory in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 142PHP message: PHP Warning:  Invalid argument supplied for foreach() in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 69PHP message: PHP Warning:  Invalid argument supplied for foreach() in /opt/bitnami/apps/mediawiki/htdocs/extensions/Amp/Amp.php on line 86', referer:

Reply to "does this extension need update ?"

Is it possible to get this extension convert skin Minerva?

2
Deletedaccount4567435 (talkcontribs)

Hi,

This is extension is an interesting implement of AMP. Is it possible to change the convert method from amp/ tag to whole site?

Therefore site admin can set up amp.example.com for all amp contents.


Anyone want to do that?

Nischayn22 (talkcontribs)

Hi, all this would need customization in this extension and is possible. If you are looking for consultancy you can contact me at nischayn22@gmail.com

Reply to "Is it possible to get this extension convert skin Minerva?"
Ciencia Al Poder (talkcontribs)

This extension is interesting. However, looks a bit hacky.

  • I'd like to have something like action=amphtml on the same URL to get the AMP page dynamically, instead of a static file being generated on the server.
  • This would allow any page to be rendered as AMP, not only those with the <amp/> tag.
  • Maybe this could be done implementing a new parser (or similar, although it sounds a bit insane :) ), and save the parsed content in cache. It may improve cacheability and automatic purge when the page is purged (because of template or image change, etc).
  • Think of a way for other extensions to hook and add their own amp markup for their own tags.
Nischayn22 (talkcontribs)

Yes, the extension is definitely a hack currently - I always create new extensions as an MVP and then improve on them as and when needed. Your ideas are good and any contribution is welcome :)

Reply to "Some ideas"
179.218.128.197 (talkcontribs)

Hey! Thanks for the last answer.

I want, in the same page, to have web and amp version. Is that possible? Because I have table setup on that page. And I want to make a Amp version with <li> intead of table. :-)

Thanks!

Nischayn22 (talkcontribs)

Hi, That's currently not possible with this extension. But can be accomplished with some work on it. You can either submit a patch or sponsor for the work.

Hope that helps!

Reply to "Different pages"
179.218.128.197 (talkcontribs)

Hi, how can I see the AMP page? Usually we add "/amp" on the end of the URL.

Nischayn22 (talkcontribs)

You can click view source on your browser and there you will find the URL for the amp page.

179.218.128.197 (talkcontribs)

Hi, how can I see the AMP page? Usually we add "/amp" on the end of the URL.

There are no older topics