joe_g Posted Tuesday at 03:29 PM Share Posted Tuesday at 03:29 PM 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? 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 More sharing options...
jploch Posted Tuesday at 04:09 PM Share Posted Tuesday at 04:09 PM @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 More sharing options...
joe_g Posted Tuesday at 05:19 PM Author Share Posted Tuesday at 05:19 PM 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? tx J Link to comment Share on other sites More sharing options...
joe_g Posted Tuesday at 05:52 PM Author Share Posted Tuesday at 05:52 PM I tried to delete everything and reinstall, and now it works but I only have a couple of blocks. I think I need to make a fresh install :) Link to comment Share on other sites More sharing options...
jploch Posted Tuesday at 06:32 PM Share Posted Tuesday at 06:32 PM 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? 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 More sharing options...
joe_g Posted 18 hours ago Author Share Posted 18 hours ago 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: 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: thanks again! j Link to comment Share on other sites More sharing options...
jploch Posted 17 hours ago Share Posted 17 hours ago 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 More sharing options...
joe_g Posted 16 hours ago Author Share Posted 16 hours ago 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! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now