Jump to content

HannaP

Members
  • Posts

    26
  • Joined

Profile Information

  • Gender
    Female
  • Location
    Germany

Recent Profile Visitors

2,027 profile views

HannaP's Achievements

Jr. Member

Jr. Member (3/6)

21

Reputation

  1. Is the Reno Theme still alive? I hope so. When updating to PHP 8.1 it throws this error: Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in .../wire/modules/AdminTheme/AdminThemeReno/AdminThemeRenoHelpers.php on line 357 Anything I can do about it?
  2. Maybe I found a solution? For the auto_detect_line_endings in line 114: I commented out this one: ini_set('auto_detect_line_endings', true); and for the strlen() I did this: line 230: $value = $this->sessionGet('csvDelimeter'); changed to $value = (string) $this->sessionGet('csvDelimeter'); I'm not sure if I did well, but the warnings are gone and the module works fine.
  3. Hello all, I'm about to make my site fit for php8.1 (it's php8.0 at the moment). From this ImportPagesCSV module I get deprecation warnings: Deprecated: auto_detect_line_endings is deprecated in XXX/site/modules/ImportPagesCSV/ImportPagesCSV.module on line 112 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in XXX/site/modules/ImportPagesCSV/ImportPagesCSV.module on line 229 What to do? (PW Version is 3.0.210)
  4. Thanks, that helped. Batcher then complained about the same in line 163 which I changed like that, too if (wireCount($this->input->post->pages) && $this->input->post->a == $this->_('Execute')) { The module seems to work now but still gives warnings: Warning: Trying to access array offset on value of type null in /home/xxx/webs/yyy/site/assets/cache/FileCompiler/site/modules/ProcessBatcher/ProcessBatcher.module on line 361 Warning: Trying to access array offset on value of type null in /home/xxx/webs/yyy/site/assets/cache/FileCompiler/site/modules/ProcessBatcher/ProcessBatcher.module on line 362 Warning: Trying to access array offset on value of type null in /home/xxx/webs/yyy/site/assets/cache/FileCompiler/site/modules/ProcessBatcher/ProcessBatcher.module on line 363 This using PHP 8.0.9 ProcessWire 3.0.165 Batcher 1.0.4
  5. Can anybody show me how to change that line?
  6. ok, solved by myself. Finally found that my XAMPP is configured without short open tags. Changed <? to <?php in the script .. and voilà things work now.
  7. I'm about to update an old site from PW 2.7.2/ PHP 7.4 to 3.0.165/ PHP 8.0 I have a problem with a HannaCode/PHP thing. This require_once($config->paths->assets . "moon_phase/moonphase.php"); worked in 2.7.2 but throws an error in 3.0.165 as if it can't find moon_phase/moonphase.php anymore. What can I do so it works again? Any help appreciated. PS.: just tested - seems to be related to PHP 8 because it works on PHP 7.4
  8. I'ld like to share the changes I made to make this module work with PHP8 MarkupiCalendar/iCalcreator/iCalcreator.class.php lines 3037-3038: from ( in_array( $fbMember{0}, array( 'P', '+', '-' )))) { if( 'P' != $fbMember{0} ) to ( in_array( $fbMember[0], array( 'P', '+', '-' )))) { if( 'P' != $fbMember[0] ) line 4196: from $unique .= $base{mt_rand( $start, $end )}; to $unique .= $base[mt_rand( $start, $end )]; MarkupiCalendar/iCalcreator/iCalUtilityFunctions.class.php line 66: from $tzid = ( isset( $theDate['tz'] )) ? $theDate['tz'] : ( 7 == count( $theDate )) ? end( $theDate ) : null; to $tzid = (( isset( $theDate['tz'] )) ? $theDate['tz'] : ( 7 == count( $theDate ))) ? end( $theDate ) : null;
  9. good to know... How did you solve it then?
  10. Hi Jannis, Is that you want this <li class="has_children"><a href="#">Über uns</a> appear like a headline ? with no link? I think it would be a good idea to give those 'headlines' their own template like 'ueberschrift' or so. Then you could proceed similar to what I posted here using a hook.
  11. just want to add results from above tests for 'tree.jpg'. file_exists = 1 exif_read_data = TRUE exif = TRUE exif["Orientation"] = TRUE Orientation = 8 frontend, halfsized is in right orientation: yes [x ] - no [ ] backend Original is in right orientation: yes [ ] - no [x] backend Thumbnail is in right orientation: yes [x] - no [ ] Is this what I normally would have to expect? ----------- No additional image-related modules in use, PW is 2.7.2
  12. @horst I refererred to the original image when talking about 'large' image. it's the one I see when clicking on a thumbnail in the backend. I have two of those candidates that behave differently. Thanks for clarifying about the orientation stuff of exif-tags. I didn't know that. I used exiftool to output the CW 270 and gThumb for the other one. I would like to send you a link via PM, so you can inspect those images further, if that helps.
  13. Even with AutoRotate set to true I have some photos that won't be rotated . They are ok in large version, but not in admin thumb. I noticed that they have something like this in their exif-tag: Camera Model Name : Canon EOS 450D Orientation : Rotate 270 CW whereas those that work fine have something like Orientation: bottom-left. Maybe that helps ..
  14. Have noticed this too, with a friend's site. He uses a Canon Camera. Large versions are fine, but thumbnails are not.
  15. Solved it myself ... Finally managed to set up hooks: function myItemString(HookEvent $event) { $child = $event->arguments('page'); // current rendered child page // any logic with $child possible here /** * Überschriften */ if ($child->template->name == 'menue-ueberschrift') { $event->return = "<span> $child->title</span>"; }; /** * active */ if ($child->template->name == 'standard') { if ($child->id == wire('page')->id) { $event->return = "<span> $child->title</span>"; } }; } // setup the hook after on ___getItemString($class, $page) method $nav->addHookAfter('getItemString', null, 'myItemString'); /* Render Navigation Markup adding options, too---------------- */ echo $nav->render() Seems to work so I guess it's ok. And I've learned something new Cheers Hanna
×
×
  • Create New...