Jump to content

DV-JF

Members
  • Posts

    294
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by DV-JF

  1. Hey, following problem:

    I'm trying to redirect all guest users which have no access to a specific page where they can login. My template access settings:

    353683062_2023-03-2308_28_47-Window.thumb.png.78d8011cfd2ce884b504b4f7c01e4e50.png

    This works fine until I switch the language. All users are redirected to the login-page but in default language. Is this supposed to be that way, how can I fix this so that the user will be redirected to the corresponding login-page in correct language e.g.

    example.com/fr/login/?id=1030
    example.com/en/login/?id=1030
    example.com/es/login/?id=1030

    Any hints or ideas?

  2. Following steps:

    • Download the latest stable version of PW here
    • Unzip the files
    • Rename index.php > index_new.php and wire folder to wire_new
    • Upload the files via FTP to your website root folder
    • Rename ./index.php to ./.BAK.index.php and ./wire/ to ./.BAK.wire/ on server side
    • Rename ./index_new.php > ./index.php and ./wire_new/ to ./wire/
    • Refresh the whole site > you maybe forced to relogin.
    • Reload the modules by clicking the button on example.com/processwire/modules/ in the upper right corner
    • After that you could use the ProcessWireUpgrade module to upgrade the other modules.

    Steps are also documented here: https://processwire.com/docs/start/install/upgrade/ if you have troubles have a look right here: https://processwire.com/docs/start/install/troubleshooting/#troubleshooting-upgrades

    Cheers ?

    • Like 2
  3. Hey all, hey @horst

    after trying to upgrade from version 1.1.15 to 1.2.0 I'll get following error:

    Call to a member function height() on null
    
    File: .../InputfieldCroppableImage3.module: 156

    These are my crop settings for the affected field:

    full,1208,755,product-item
    vorschau-startseite,600,600,product-item,produkte-page
    ausschnitt,960,540,feedback-item
    vorschau,1200,900,news-item,section-box-1-3
    boxed-third,700,450,product-item,produkte-page,repeater_rep_ImageTextBox,section-sing_person, product-item-externallink
    full-wide,1280,640,produkte-page
    two-third,1680,840,section-box-img-headline-link

    Any ideas what might have gone wrong?

    ... a few moments later...

     EDIT: Seconds after posting this, I've found the error:

    in crop definitions line 5 "boxed-third" there was an empty space in definition ?

    I apologise for bothering you. I'll leave my dumbness here in case someone else makes the same mistake, or in case I do it again ?

    • Like 1
  4. Hey @teppo perhaps you could give me hint, I'm facing an really annoying bug and don't know how to debug further:

    I've installed your module first on a dev-server then tried to migrate the settings to the live server. On the dev server everything is running as expected, and you're module is working fine, but on the live server i get the message:

    You don't have permission to view this branch of the page tree.

    When I disable your Module the (first and then only) selected branch is shown as it should be via module "Admin Restrict Branch" .

    Same settings on both websites: ProcessWire 3.0.210 © 2023 @ PHP 8.1.9

    What I've noticed so far: When I do

     
    db($event);  in .../AdminRestrictBranchSelect/AdminRestrictBranchSelect.module.php:114

    the $event->return; is false on live website but true on dev server:

    630012215_2023-02-1412_47_07-BaumProcessWireawo-dachau.deMozillaFirefoxPrivaterModus.png.6c735fba93a6f51ee585d0edc12fa1cb.png 679422028_2023-02-1412_49_43-SeitenProcessWireawo.vieregg.designMozillaFirefox.thumb.png.48b9707f86b45ac36f527f58273dc67c.png

    Any ideas on how to debug further?

  5. Indeed - didn't thought about this place to look for errors ?‍♂️

    vor 8 Minuten
    2023-02-03 09:29:01 	guest 	/ 	Could not process user media: {"error":{"message":"Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.","type":"OAuthException","code":190,"fbtrace_id":"A8JC4GfQtIPWPBs_P8YONKd"}}
    
    vor 8 Minuten
    2023-02-03 09:29:01 	guest 	/ 	Could not refresh long-lived access token

    I expected the access token to be renewed automatically - the passwords of the corresponding pages were not changed.

  6. Hey @nbcommunication, hey all...

    since a few day's (don't know exactly when it startet) I've a problem getting the feed. I'm using this plugin on different sites with various accounts - so far had no problems with it. On 3 of these websites the feed doesn't load any more - on the other websites I suspect that the cache is not expired, yet. There are no items in the $instagram->getMedia() array any more - no errors are shown. When I review the modules settings this so what I got:

    There is currently 1 cached request.

    2080934359_2023-02-0308_18_16-Modul_InstagramBasicDisplayAPIvieregg-design.deMozillaFirefox.thumb.png.0b8294adf60aa57a14ee06384d1f6eb8.png

    Clearing the cache doesn't help.

    Anyone else facing this problem, any ideas how I could debug further?

    Cheers and many greet!

  7. Hey @ryan, hey all,

    I've to update some websites in order to make them work with PHP 8.1. While doing so I've noticed, that ProcessWire is not on all sites in the listed updates. I'd expected to be on top of the list like this:

    1802821283_2023-01-2718_01_33-UpgradesProcessWireheydebreck.comMozillaFirefox.thumb.png.647758c8dd690d32d5301a9e4c6c11dc.png

    But on some websites ProcessWire doesn't appear and I see no logic behind ?

    1465822462_2023-01-2718_03_45-UpgradesProcessWirekowalewski-rolladenbau.deMozillaFirefox.thumb.png.178931a3523eba787087038c2ea85638.png

    Any hints or an explanation?

    Cheers ?

     

  8. 1 hour ago, kaz said:

    sorry, I don't understand?
    w1 = $item->colwidth;
    the value is passed,
    $w2 = 4 - $w1;
    needs to change something on this line?

    If you echo $item->option a string will be echoed and you can't calculate with a string.

    In order to do the math you have to echo $item->option->value to get the value of the selected field which is in your case an integer.

    To be precise you could do

    $w1=intval($item->colwidth->value);

    See: https://www.php.net/manual/de/function.intval.php

    • Like 2
×
×
  • Create New...