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 (3/6)
2
Reputation
-
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
-
Questions: Export and Import pages or fields using the API
bluellyr replied to bluellyr's topic in API & Templates
@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 -
Questions: Export and Import pages or fields using the API
bluellyr replied to bluellyr's topic in API & Templates
@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. -
InputfieldFieldset inside a InputfieldFieldset and how find pages
bluellyr replied to bluellyr's topic in API & Templates
Sorry, you already issued, thank you. -
InputfieldFieldset inside a InputfieldFieldset and how find pages
bluellyr replied to bluellyr's topic in API & Templates
Hi, I am going to report the bug. Many thanks -
bluellyr started following Questions: Export and Import pages or fields using the API
-
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.
-
@adrian - I just updated to the last version. Thank you for your availability, all the best.
-
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?
-
InputfieldFieldset inside a InputfieldFieldset and how find pages
bluellyr replied to bluellyr's topic in API & Templates
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? -
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
-
@Robin S, yes I had the Tracy Debugger disabled for modals, thank you for the tip.
-
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
-
Thank you, for the explanation and for the alternative. All the best
-
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