Jump to content

erikvanberkum

Members
  • Posts

    32
  • Joined

  • Last visited

  • Days Won

    1

erikvanberkum last won the day on August 11 2017

erikvanberkum had the most liked content!

Profile Information

  • Gender
    Not Telling
  • Location
    Osaka Japan

Recent Profile Visitors

1,787 profile views

erikvanberkum's Achievements

Jr. Member

Jr. Member (3/6)

34

Reputation

  1. I am calling the following on a multilanguage field. $all_options = $field->type->getOptions($field); I am able to get the default language, but how do I access the other languages? I.e. my default is English and one of the other languages is Dutch. When I call this field, on a dutch page it shows up in default English. Anyone able to point me in the right direction? Links below didnt help me. https://processwire.com/docs/fields/select-options-fieldtype/ https://processwire.com/api/ref/fieldtype-options/get-options/
  2. Just an odd thing someone runs into every 6 years it looks like but today was my turn. Doing a makeover of our website and try to reuse a field. Went into the database table fields, and set the parent_id back to 0. I couldn't find how to reset this on the page itself. {"derefAsPage":0,"inputfield":"InputfieldPageListSelectMultiple","parent_id":0,"labelFieldName":"title","collapsed":0,"operator":"*=","searchFields":"title","description":"A maximum of up to 8 promo blocks can be selected a larger number will not be displayed","findPagesSelector":"parent=\/","usePageEdit":0}
  3. Similar problem here: Fatal Error: Uncaught Error: Class 'Pagefiles' not found in site/modules/FieldtypePDF/FieldtypePDF/PagePDFs.php:37 Using PW ProcessWire 3.0.165
  4. I have figured it out, I was missing some required PHP packages: installed additionally: php7.2- bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm
  5. I have an issue with my sitemap.xml on my new development server: Ubuntu 20 with PHP 7.2 and processwire 3.0.165 XML Parsing Error: syntax error Location: http://localhost/pw/sitemap.xml Line Number 1, Column 1: I get the following notice printed at the top of my sitemap: Notice: Undefined index: in /var/www/html/pw/wire/core/Punycode.php on line 201 this template is set to content-type application/xml The issue started after enabling in the config: $config->pageNameCharset = 'UTF8'; $config->pageNameWhitelist = '-_.abcdefghijklmnopqrstuvwxyz0123456789æåäßöüđжхцчшщюяàáâèéëêěìíïîõòóôøùúûůñçčćďĺľńňŕřšťýžабвгдеёзийклмнопрстуфыэęąśłżź仕様土陸上が北市向技術協地ぁピあぃガ消毒気泡サミキ排イズと性質ウル超微細おび制御装置トラファインバブル生成器藻類ファインバブルスタンダド高濃度ウルラファインマイクロバブルステンレス塩化ビニールレイクユッインレッフィルタ製品テクノジーホムシングルデュプレック農業スリプレクスセルフクリングインレッフィルタ 実演セルフクリング インレットフィルタ解説ュスレタオゾン気泡による水質改善アダアンレク高性能カメで見るウルラプスファンバブルの革新スマな人は語る気泡とウォタノベョンについてプバポ検索コ支払店バイオティスアグテッバイオティクス農業ン水処理汚水処理米水産養殖業種子発芽効果モ中研究室ェ池ナ酸素結合大麻幅増加葉先焼け魅力的を栽培す違何衣洗浄利用した長距離鮮魚輸送縮医療用大麻鶏場へ果'; i also enabled this in the .htaccess file. I have copied all the settings from my production server Any ideas how to troubleshoot this?
  6. hello @Richard Jedlička, i found the issue. It was not an issue with the module but a problem with an ImageMagick-6 policy update on my Ubuntu machine, which seems to have happen around the same time as i updated my Processwire version: The solution to my problem was to edit /etc/ImageMagick-6/policy.xml than change the following line from: <policy domain="coder" rights="none" pattern="PDF" /> to <policy domain="coder" rights="read|write" pattern="PDF" /> and added the following line <policy domain="coder" rights="read|write" pattern="LABEL" /> By changing the policy you have to make sure that you can trust the users that upload the pdf files.
  7. I am still having issues with this module. this is what the error log shows running 3.0.148: Fatal Error: Uncaught TypeError: Argument 1 passed to InputfieldPDF::getAdminThumb() must be an instance of FieldtypePDF\PagePDF, instance of Pagefile given, called in /site/assets/cache/FileCompiler/site/modules/FieldtypePDF/InputfieldPDF.module on line 111 and defined in /site/assets/cache/FileCompiler/site/modules/FieldtypePDF/InputfieldPDF.module:57 Stack trace: 1. /site/assets/cache/FileCompiler/site/modules/FieldtypePDF/InputfieldPDF.module(111): InputfieldPDF->getAdminThumb(Object(Pagefile)) 2. /wire/core/Wire.php(389): InputfieldPDF->___renderItem(Object(Pagefile), 'pdf_manual_6feb...', 0) 3. /wire/core/WireHooks.php(823): Wire->_callMethod('___renderItem', Array) 4. /wire/core/Wire.php(450): WireHooks->runHooks(Object(InputfieldPDF), 'renderItem', Array) 5. /wire/modules/Inputfield/InputfieldFile/InputfieldFile.module(562): Wire->__ Line 57 of /site/assets/cache/FileCompiler/site/modules/FieldtypePDF/InputfieldPDF.module Anyone experience or suggestions how to get around this?
  8. David i like your module it works nicely. I have an issue using it in combination with amp pages. With amp pages we are not allowed to inject any java script code. So I want to exclude my amp pages from getting the pagehitcounter.min.js injected. Is their a way to block this? For the pages were I want to have the java script I can load it manually. I know you can set templates from getting tracked and not tracked but my issue is that i don't have separate template for an amp page and the normal page
  9. Sorry yes my mistake its an auto-appended file not a template.
  10. Robin Great module works great in my phpStorm environment. One thing i have some templates files named _main.php, it seems that templates that start with and underscore are not generated in the AutoTemplateStubs directory. Thanks
  11. After upgrading to the latest master 3.0.148 coming from the 3.0.123 version, this module stopped working in the sense that i am no longer able to upload files. I get the following error message: NOT AUTHORISED /files/assets/8888/filename.pdf @ error/constitute.c/ReadImage/412
  12. I had the same issue after an upgrade from php 7.0 to 7.2, its a matter of php missing a library: sudo apt-get install php7.x-zip apache2ctl restart
  13. @adrian @ipa, installed version TD 4.8.18 on PW 3.0.62 and works with out the nasty bug. Thank you for the good work.
×
×
  • Create New...