Jump to content

NoremPload

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by NoremPload

  1. 12 minutes ago, adrian said:

    @NoremPload - this functionality is now in the PW core: https://processwire.com/blog/posts/pw-3.0.142/#custom-fields-for-files-images

    I would recommend that over this module now.

    Thanks, i'm allready using this "version" - Sorry if there was a missunderstanding.

    I'm really confused. I have two image fields (same structure) one in a repeater, one not in a repeater. one is working fine, the other one is only saving the values the second time i save it.

    i played around with the fields now. All fields are working fine if NOT used in a repeater, if used in a repeater, they won't save the first time.

  2. Hi again ?

    I have a strange problem now with the custom fields for images. 

    I have used this for some time now and it worked fine, but now (on an other installation - ProcessWire 3.0.148) i have a strang problem with it.

    Image is in a repeater and i have added a template with field-xyz for it. The extra fields are there but if i upload a new image and fill out the extra fields, they are not saving. 

    If i fill them out a second time (when the image is already uploaded) it works fine.

     

    Any idea?

     

  3. 12 hours ago, Jonathan Lahijani said:

    @NoremPload ProcessWire 3.0.142 (which is a dev version and very recently released) brings in the ability to have custom fields for images.  I personally had some issues with this ImageExtra plugin and stopped using it a while ago (it's been a few years).  Also the author is no longer working with ProcessWire so there's also that.  I'd recommend putting in the extra work to do it the new, native way:

    https://processwire.com/blog/posts/pw-3.0.142/

    Thank You !!!! Upgraded to 3.0.143 and it works. Spent hours yesterday to get this fixed, you saved me some more hours working on it ;)

  4. On 10/28/2019 at 3:34 PM, caffeineben said:

    Had the same error when moving the site from one server to a new one. Checked and for some reason the ProcessPageView.module was skipped in the upload so solved by uploading that file. Glad this was here!!

    Thank you! Had the same Error. A lot of dirs and files failed to upload. 

    Uploading eveything again, truncate cache table and delete files in cache dir solved the problem.

  5. On 6/25/2019 at 10:01 AM, Lars282 said:

    Hi.

    For some reason, without doing any changes on my part to the PW install over the last 2 years, the image extra field that I had set up disappeard just now from the edit page:

    I have setup the image field with a custom text input as follows:

    619134391_2019-06-2509_54_38-EditField_article_imagesanglejournal_com.thumb.png.f770541f05ea1eb8193df407caf59b87.png

    But I do not see this with the image when editing a page:

    1112972030_2019-06-2509_56_32-Inbox.thumb.png.232f7176891999cd48a0c8f711194634.png

    In the database, the field is available and filled for all "old" pages that were created a while back:

    928902479_2019-06-2509_58_10-anglejournal.com_localhost_anglejou_pw_field_article_images_phpMyAdmin4.png.f8736b95821d984ad35fbc95a306e4d2.png

    [Note: I have just now, after the issue occured, manually changed the default in the table from None to "" as it otherwise would not have allowed me to upload any new images]

    Did anyone encounter this before? How do I get the field back to show when editing pages?

    Any help would be highly appreciated!

    Best

    Lars

    I have the same problem.

    Installed the module. 

    There is no selection of fields where the extra fields should be added (as in some tutorials)

    The field for adding extra fields is available at every image field

    image.png.2b09c79977a14aa631213ce82a4187dd.png

    but the fields do not show up. Any solutions for this?

    image.thumb.png.705b08913d5555a884d7b46fb853fdf6.png

    ProcessWire 3.0.123

    Image Extra 

    Version

    1.0.6

     

     

    Using the Module and the fields at some other PW installations, there it works.

     

  6. solved: host is with www. now ?

    It's me again ?

    Currently all my sites are running on http, but now it's time to change to https.

    But if i call the site with https instead of http i just get a white page, anything i have to do in the config for using https?

    The output is the root page (web), not the page that should be linked to the domain in the page tree (page2).

     

    -web
    -- page1
    -- page2

     

    Thanks!

  7. Hi,

    EDIT: Found it, change it in the module configuration. Can't be overwritten by field definition.

     

    i cannot change the length of the seo_title field. I changed the field max length to 100 but it is still 60 at the input field. i tried to remove the counter to check, does not work. Tried to change the title and description of the field, this works. I'm confused.

     

    Thx for any help!

    seotitle.jpg

  8. Hi,

    I try to use a page reference to make an overview site, but i cannot select (save) the page i use the field on.

    -page 1
    -- article 1
    -- article 2
    -page 2
    -- article 3
    -- article 4

    all templates of the pages are selected in selectable templates in field definition.

    i am on page 1 and i want to select page 1 as reference. i can select all pages, but if i save, all pages are there (if i select all of them) but not page 1.

    anyone can help, or is this the way it should be?

     

  9. Hi, i'm back again with some questions about the module :)

    How do i get the id of the current used sites root page in a template?

    $config->MultisiteDomains = array(
        "www.someurl.net" => array( 
                "root" => "www.someurl.net", <====== page id of this page ???
                "http404" => 1023

     

    and how do i pick this up in a template ?

     

    // Multisite.module - Line 84
    
    // set the current domain, so it can be picked up in templates or other modules
    $this->domain = $httpHost;

    Thanks for any help !!

  10. Thx Soma for trying to find out what's going on.

    I just tried to rename everything to

    www.super.info => does not work

    www.super.inf => does work

    I really have no clue what's wrong, but it works with .inf, so i'll work with this ;)

     

    @404, i get the correct 404 page not the server 404 page

     

  11. Thx Soma, this brought me one little step further, but not to the end ;)

    i changed the config to

    $config->MultisiteDomains = array(
        "www.domain1.net" => array( 
                "root" => "www.domain1.net", 
                "http404" => 1023
            ),
        "www.domain2.info" => array(
                "root" => "www.domain2.info",
                "http404" => 27
            )
    );

    and the page tree to

    - web
    	-- www.domain1.net
    		--- 404 Domain 1
    		--- page1
    	-- www.domain2.info
    		--- page1
    		--- page2
    		--- 404 domain 2
    - Admin
    - Trash

    www.domain1.net shows me -- www.domain1.net and www.domain2.info shows -- www.domain2.info

    but any subpages are showing the 404 page 

    www.domain1.net/page1 => www.domain1.net/404domain1

    and

    www.domain2.info/page1 + www.domain2.info/page2 => www.domain2.info/404domain2

    another strange thing: www.domain2.info => page1 was called calculator before and www.domain2.info/calculator/ worked, after renaming it to page1 www.domain2.info/page1/ doesn't work, going back to calculator, www.domain2.info/calculator/ works again

    i really don't have any idea whats going on ;(

     

    edit: i logged the modify part in the module

    // we modify the GET it to tell PW what page to load
    $_GET['it'] = (isset($_GET['it']))
    	? "$langSegment{$domainPageName}/" . $this->it
    	: "$langSegment{$domainPageName}/";
    
    $this->log( '$_GET[it]: ' . serialize($_GET['it']));

    and got this

    $_GET[it]: s:28:"www.domain2.info/page1";

    i guess thats what it should be, but the request does not work :( i always get the 404 page

     

    Finally i solved it after a lot of try and error

    the only thing i had to change was removing .info or change it to .inf 

      "www.domain2.info" => array(
                "root" => "www.domain2.inf",
                "http404" => 27
            )

    in the config and in the paht, now it works.

     

    other 4 letter domains are working, only info brings the error

     

  12. i'm trying to get the multisite module to work, but i guess there is something i am missing, i hope someone can help:

    this is my page tree

    -web
    --www.domain1.net
    ---404 Domain1
    --www.domain2.info
    ---page2
    ---Domain2 Not Foundffff
    -Admin
    -Trash

    then i added this into config.php

    $config->MultisiteDomains = array(
        "domain1.net" => array( 
                "root" => "www.domain1.net", 
                "http404" => 1023
            ),
        "domain2.info" => array(
                "root" => "www.domain2.info",
                "http404" => 27
            )
    );

    and

    $config->httpHosts = array('www.domain1.net', 'domain1.net', 'www.domain2.info', 'domain2.info');

    and both domains are pointing to the same directory

     

    and now both www.domain1.net and www.domain2.info shows me the "-web" page

    and anything else shows the Domain2 not foundffff PAge with ID 27 (www.domain2.info/web/page2, www.domain2.info/page2 and any other URL)

     

    i have the module 

    Multisite
    MODULE VERSION SUMMARY
    Multisite	0.1.0

    showing up under modules page

     

    I use PW under www.domain1.net/myadmin and the links-Button in the page-tree points to http://www.domain1.net/www.domain1.net and http://www.domain1.net/www.domain2.info

     

    Now i tried to install the old module Multisite    0.0.1, now i have an additional settings field on the modules page which i did not have with the new module. The Domains and the subsites are working, but i cannot get to the backend anymore www.domain1.net/myadmin shows mie the 404 site... ahhhh, i'm confused :(

     

    is there something missing? do i have to add anything else ?

     

    Thanks for any help !!

  13. i love the new  Front-End Page Editor, but as always there are some troubles with good old apple ;(

    i have a text field, a text-area field an an image with activated front end editing. everything works fine on desktop, on android and on older iOS devices.

    But with iOS10 apple ignores user-scalable=no, so if i doubletap on the edit region, the text zooms. it works on the image but not on the text. 

    any ideas to make it work again ?

     

    thx !

  14. got a similar problem :(

    <form id="testform" class="col s12 InputfieldForm" name="testform" method="post" action="" data-colspacing="1">

    <input placeholder="w / kW" id="power" name="power" type="text">

    <input value="8,5" id="price" name="price" type="text">

    .

    .

    </form>

     

    after sending the form i get following output

     

    with=>

    print_r($input->post);
    print_r($_POST);

    ProcessWire\WireInputData Object
    (
    )


    Array
    (
        [power] => 
        [days] => 3
        [price] => 8,5
        [power_form_sent] => 1
        [submit] => submit
    )

    tried to change action to full URL etc, did not help

    any ideas ?

     

     

  15. hi again,

    Thx for your detailed reply! I tried the zip upload, it also does not work 100%. Uploading a 40MB Zip File works, but everything over about 150MB failes, i have 250 MB max_filesize and 250 memory_limit, maybe that's not enough and the error i get doesn't help => Uncaught TypeError: Cannot read property 'error' of null(anonymous function) @ InputfieldFile.min.js?v=118:1

    I bulid workaround upload page where i upload the zip, unpack it and add the images via API. 

    • Like 1
  16.  When i'm uploading multiple Images in backend everything looks fine first.

    - All Images are uploading

    - All Images are shown as Thumbnails 

    but after saving, about 50% of the images are gone. For Example: I upload 10 images, every image is shown in the form, but after saving i have just 5 or 6 images assigned.

    I don't get any errors, not in Developer Console, not in PW logs, no PHP Errors

    If i drag and drop them one after on the upload area (same files) and wait until thumbnail is shown and then save the form, everything works fine.

    If i try the same form local on a XAMPP installation, everything works fine.

    Any idea ?

    • Like 1
×
×
  • Create New...