Jump to content

Wanting to test but getting "FieldtypePageGrid - Method NullPage::addPermission does not exist"


joe_g
 Share

Recommended Posts

Hi there, wanted to give pagegrid a shot but ran into this

 Please buy a PAGEGRID license before you launch your project. For test and staging domains you...  (just testing for now)

 Failed to ready module: FieldtypePageGrid - Method NullPage::addPermission does not exist or is not callable in this context

I tried upgrading to latest PW (v 3.0.244), but get the same error.

When I try to add an 'item' I get this empty square above the + button. Probably related to the error?

image.thumb.png.9189b2f31617e44fc0e0c5eaced3f4fd.png

THe page itself is empty if I look at it.

Let me know if there is something i can do to get this to work!. This looks perfect for a client of mine.

tx!

Link to comment
Share on other sites

@joe_g Thanks for considering PAGEGRID and sorry for the trouble! A recent update seems to have introduced a bug for the install function.

I just pushed on update that should fix your issue. Please uninstall the module and then reinstall with the new version (2.2.19).

Link to comment
Share on other sites

1 hour ago, joe_g said:

Thank you! One step further!

If i create an image block there is no way for me to upload an image. Did I miss a step? 

image.thumb.png.3950c8a5fb8a5c8d34d089ff2024ff6d.png

tx J

Did you create your own block with a .php file in "site/templates/blocks/" or did you use the premade blocks? If you used the premade blocks the uploader should just work out of the box. Maybe somethinng went wrong on install. So it's probably a good idea to reinstall the block modules as well if you want to use them.

Link to comment
Share on other sites

Testing new install

Warning: Undefined array key "inlineLimitPage" in /var/www/html/elephant-test-pagegrid/site/modules/FieldtypePageGrid/FieldtypePageGrid.module.php on line 481
 

then when i try to download the default block modules i get

ProcessModuleInstall: Module install option “download” - This install option is currently disabled. To enable, edit file /elephant-test-pagegrid/site/config.php and specify:
`$config->moduleInstall('download', true);` to enable always …or…
`$config->moduleInstall('download', 'debug');` to enable in debug mode only

Even thought the site is in debug mode. I added the lines above and it got the install to work. Great!

Now i'm stuck on languages - can the rich text be translated? I added my languages and I get this tab:

image.png

 

But it doesn't seem to do anything. 

I tried making pg_text and pg_editor multilanguage, but it didn't make any difference, as far as I can see:

image.thumb.png.b8c856fd70ae497e3c0b431f5f60e05e.png

thanks again!

j

 

 

Link to comment
Share on other sites

Glad that you got the install working.
 

1 hour ago, joe_g said:

Warning: Undefined array key "inlineLimitPage" in /var/www/html/elephant-test-pagegrid/site/modules/FieldtypePageGrid/FieldtypePageGrid.module.php on line 481

Thanks for informing me about this. Just pushed an update, should be fixed now. 

1 hour ago, joe_g said:

then when i try to download the default block modules i get

ProcessModuleInstall: Module install option “download” - This install option is currently disabled. To enable, edit file /elephant-test-pagegrid/site/config.php and specify:
`$config->moduleInstall('download', true);` to enable always …or…
`$config->moduleInstall('download', 'debug');` to enable in debug mode only

Even thought the site is in debug mode. I added the lines above and it got the install to work. Great!

PAGEGRID block modules can have dependencies that they download automatically (eg. the image block donwloads the SVG File Sanitizer/Validator Module). Ryan added a new check with the latest updates that needs a setting in config to allow downloads. But I found a way to set this at runtime when the user is superuser und debug is on, so should work now even without setting it explicitly.

1 hour ago, joe_g said:

I tried making pg_text multilanguage, but it didn't make any difference, as far as I can see:

You are on the right track. PAGEGRID is not doing anything special when it comes to multilanguage. You only need to install all the core multilang modules and set the fields to multilang like you did. You can also test if multilanguage works for other non PAGEGRID pages and make sure it's not relates to PAGEGRID. Also you can click the edit icon (pen icon) when you hover the text block. In the sidebar you should see your textfield with the multilanguage tabs. The buttons at the top of your PAGEGRID field are switching the whole site to the corresponding language so you can quickly edit the text with the inline editor. What happens if you click those buttons? 

Link to comment
Share on other sites

Ah yes, indeed - I had forgotten to set the path on the root page (home) to allow the second language. Now the page-language switch works, and also editing a richtext with individual languages.

Page grid seems to work rather splendid with multiple languages. Nice!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...