Jump to content

bluellyr

Members
  • Posts

    30
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Lisbon

Recent Profile Visitors

1,295 profile views

bluellyr's Achievements

Jr. Member

Jr. Member (3/6)

2

Reputation

  1. Hi, I using the Processwire 3.0.231 and PHP 8.3 and I am seeing some PHP Deprecated warnings on the Tracy Debugger related to the AdminOnSteroids module. This is also happening on the PHP 8.2. These are the are the PHP Deprecated: - The lines might be a little bit off because some of the warnings only showed after fixing the first ones. #1: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in .../site/modules/AdminOnSteroids/AdminOnSteroids.module:1572 #2: PHP Deprecated: Function utf8_encode() is deprecated in .../site/modules/AdminOnSteroids/AdminOnSteroids.module:1779 #3: PHP Deprecated: Function utf8_decode() is deprecated in .../site/modules/AdminOnSteroids/AdminOnSteroids.module:1797 And these are the fixes that I have patched/fixed on the AdminOnSteroids.module: For the #1: - Original code: $inputfieldClass = str_replace('Inputfield', '', $f->inputfieldClass); - FIX: $inputfieldClass = ((property_exists($f, 'inputfieldClass'))? str_replace('Inputfield', '', $f->inputfieldClass) : ''); For the #2: - Original code: $pageLabelField = utf8_encode($pageLabelField); - FIX: $pageLabelField = mb_convert_encoding($pageLabelField, "UTF-8", mb_detect_encoding($pageLabelField)); For the #3: - Original code: $page->template->pageLabelField = utf8_decode($pageLabelField); - FIX: $page->template->pageLabelField = mb_convert_encoding($pageLabelField, "UTF-8", mb_detect_encoding($pageLabelField)); It is possible for you to update the module so it will be fixed on the future installations? Thank you for your time
  2. @Autofahrn Yes that is one of my concerns. The first approach to the implementation of the structure was to have a parent Processwire installation and to have some other children Processwire installations that in some how will mirror the structure of the parent (templates and fields). The templates and fields were not be edited on the children only the pages. For the pages we needed other process to maintain everything synchronised. But this scenario is really difficult to maintain and synchronise and we have dismiss this approach and we are going to a central Processwire installation with an API and each child can CRUD using the API. We will need import/export functionality but with less or none uncertainties on the process since they will be executed on the central installation. Thank you
  3. @kongondo thank you for your time and for your reply. It gave me a lot of to dig into. Many thanks for the links and examples.
  4. Many thanks for you reply, I am going to check my code using your example.
  5. Hi, I have a project that will be necessary to export/import and create/update pages and fields using the API without the end user action: - It is possible to export pages or fields to a file and save that file using the Processwire API? - It is possible to import pages or fields from a local or remote file (previous exported from other Processwire) using the Processwire API? - It is possible to update pages or fields from a file using the Processwire API? - Can the export/import functionalities give any help addressing these issues or it is necessary create all these functionalities from scratch? Thank you and hoping to have your feedback.
  6. @adrian - I just updated to the last version. Thank you for your availability, all the best.
  7. Hi, I am using the Tracy Debugger 4.17.18. Regarding the @Robin S remark about the having the "Tracy debug bar disabled for modals", I had the Tracy Debug disable for modals, can this be the cause of the error?
  8. To test this possibility I have created a field InputfieldFieldset (fieldsetPage1) that have a FieldtypeFieldsetPage (fieldsetPage2) and the field2 has a FieldtypeFieldsetPage (fieldsetPage3) that has a text field (text_field) a added the fieldsetPage1 to a template (template1) like this: - template1 > fieldsetPage1 > fieldsetPage2 > fieldsetPage3 > text_field When I page a page using this template, $p = $pages->find("template=template1")->first(); , I can get the "text_field" value using the object notation link this: - $text_field_value = $p->fieldsetPage1->fieldsetPage2->fieldsetPage3->text_field; But when I try to find a page using: - $p = $pages->find("template=template1, fieldsetPage1.fieldsetPage2.fieldsetPage3.text_field=test"); I get an error: - Exception: Operator ~= not supported for fieldsetPage2.data (in /www/domain.com/wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module line 1384) I am using ProcessWire 3.0.126, Do anyone have done something like this or explain what is wrong?
  9. Hi, It is possible to create a field InputfieldFieldset (fieldsetPage1) that have a FieldtypeFieldsetPage (fieldsetPage2) and the field2 has a FieldtypeFieldsetPage (fieldsetPage3) that has a text field (text_field) a added the fieldsetPage1 to a template (template1) like this and use $p = $pages->find("template=template1, fieldsetPage1.fieldsetPage2.fieldsetPage3.text_field=test"); to find pages? Thank you
  10. @Robin S, yes I had the Tracy Debugger disabled for modals, thank you for the tip.
  11. Hi, I have made a module that adds new configuration fields to all field types. One of the issues that I am struggling with is , the new configuration fields works fine when editing the field itself but on the template context the field value is not saved when changed. When saving the new value when editing the the field on the template context the wire('input')->post is empty and I do not know how to get the new value to save it on the field "value" attribute or what might be wrong with the code. In attach is the file of the module "ExtraFieldConfigurations.module". Many thanks ExtraFieldConfigurations.module
  12. Thank you, for the explanation and for the alternative. All the best
  13. Hi, even using: \TD::barDump('test'); or bd(), d(), l(), fl(), when trying to debug a field on the template context I always get the following error, in this case I was trying to use \TD::barDump('test'); I think that is because the module Tracy Debugger is not loaded when editing a field on the template context, can this be the case? Thank you
×
×
  • Create New...