Jump to content

Oca2

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Oca2

  1. 26 minutes ago, adrian said:

    Remember that these modules were built by different developers - CroppbaleImage3 is not an upgrade to the Thumbnails module. The Thumbnails module was abandoned and @horst was kind enough to build this one and also put together a script to make the migration as easy as possible. 

    The conversion from Thumbnails to CroppableImage is the only issue I have had with migrating any of my sites from PW 2 to 3 - I think that is pretty incredible for a major version upgrade.

    I am not meaning to sound dismissive, I understand it's not a simple migration, but I don't think it should be expected to be automatic in this scenario - I hope you understand.

    Yes I understand 101% now!

    I thought it was a core plugin...

    Can't wait to have the code up and running I'm on 50% updating... 50% works :)

    This works :)

    <img src='{$page->mosaic_photo_2->eq(0)->getCrop('thumbnail')->url}' alt='{$page->mosaic_photo_2->description}' /></a></div>";}

    This not :(

    <img src='{$child->overviewimg->eq(0)->getCrop('thumbnail')->url}' alt='$child->title'>

     

    • Like 1
  2. On 1/26/2018 at 1:36 AM, adrian said:

    Thanks for chiming in @horst - I have already linked to that: 

    This is the problem with multiple threads for the same issue, :) but I think @Oca2 has the message on that now :)

    I think it is to complicated... would be nice if this was fixed by a default update... not by hand going through source codes 2 much time and possibility's 2 break stuff.

  3. Tis is the code I use now, no errors but also no images on front-end

     

    <img src='{$page->mosaic_photo_1->eq(0)->getCrop('thumbnail')}' alt='{$page->mosaic_photo_1->description}' /></a></div>";}

    and

    <img src='{$child->overviewimg->eq(0)->getCrop('thumbnail')}' alt='$child->title'>

  4. No more errors :)

    But...

    I don't want to go through the update process renaming all images files... to complicated so I will manually update the images...

    ...But if I select new images from admin they are still not visible on the front-end???

  5. 37 minutes ago, adrian said:

    @Oca2 - please try to avoid double posting and if you do, please follow up on both so people don't try to help you when you've already been helped.

    Thanks!

    Cheers,
    Adrian

    Ok will follow up this time and next time avoid double post :)

     

    • Like 1
  6. How can I find the paths mentioned in the errors below? Tracy debug did not give any error or info.

    Session: destinationPath is not writable (overviewimg)

    Session: destinationPath is not writable (images)

    Session: destinationPath is not writable (pdf_doc)

     

    I did changed permision on the "images" folder but no success...

  7. changing...

    <img src='{$child->overviewimg->eq(0)->getThumb('thumbnail')}' alt='$child->title'>

    to...

    <img src='{$child->overviewimg->eq(0)->getCrop('thumbnail')}' alt='$child->title'>

    did not work...

    ...and give error:

    Exception: There is no crop setting for the template 'home' called 'thumbnail' (in /domains/gemsbok.nl/DEFAULT/fresh/site/modules/CroppableImage3/FieldtypeCroppableImage3/FieldtypeCroppableImage3.module line 209)

    And have set the crop setting to square,160,160

  8. changing...

    <img src='{$child->overviewimg->eq(0)->getThumb('thumbnail')}' alt='$child->title'>

    to...

    <img src='{$child->overviewimg->eq(0)->getCrop('thumbnail')}' alt='$child->title'>

    did not work...

    ...and give error:

    Exception: There is no crop setting for the template 'home' called 'thumbnail' (in /domains/gemsbok.nl/DEFAULT/fresh/site/modules/CroppableImage3/FieldtypeCroppableImage3/FieldtypeCroppableImage3.module line 209)

    And have set the crop setting to square,160,160

  9. Updated to latest version PW and CroppableImage3 but old code from templates doesn't work anymore are there code examples to call CroppableImage3 in templates. Thanks!

    if($page->mosaik_title_1) { echo "
    <div class='three columns'>
    <a href='{$page->mosaik_url_1}/'>
    <span class='m1'>{$page->mosaik_title_1}</span>
    <img src='{$page->mosaic_photo_1->eq(0)->getThumb('thumbnail')}' alt='{$page->mosaic_photo_1->description}' /></a></div>";}
    
    and
    
    foreach($page->children as $child)
                echo "
                    <div class='cat1 cat5'>
                    <div class='port-item-container'>
                        <div class='port-box'>
                                <a rel='bookmark' title='{$child->title}' href='{$child->url}'>
                                <img src='{$child->overviewimg->eq(0)->getThumb('thumbnail')}' alt='$child->title'>
                                </a>
                        </div>
                        <div class='port-item-title'>
                            <h6>{$child->title}</h6>
                            <span>{$child->overviewtxt}...<a href='{$child->url}'> Lees verder »</a></span>
                        </div>
                    </div>
                    </div>
                    ";
  10. Ok... updated to 3.0.62 installed CroppableImage3 now I get the following errors...

    User Error
    Exception: Method Pageimage::getThumb does not exist or is not callable in this context (in /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php line 519)

    #0 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(386): ProcessWire\Wire->___callUnknown('getThumb', Array)
    #1 /domains/somesite.nl/DEFAULT/fresh/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___callUnknown', Array)
    #2 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Pageimage), 'callUnknown', Array)
    #3 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(445): ProcessWire\Wire->__call('callUnknown', Array)
    #4 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(445): ProcessWire\Pageimage->callUnknown('getThumb', Array)
    #5 /domains/somesite.nl/DEFAULT/fresh/site/assets/cache/FileCompiler/site/templates/home.php(16): ProcessWire\Wire->__call('getThumb', Array)
    #6 /domains/somesite.nl/DEFAULT/fresh/site/assets/cache/FileCompiler/site/templates/home.php(16): ProcessWire\Pageimage->getThumb('thumbnail')
    #7 /domains/somesite.nl/DEFAULT/fresh/wire/core/TemplateFile.php(268): require('/domains/gemsbo...')
    #8 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render()
    #9 /domains/somesite.nl/DEFAULT/fresh/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___render', Array)
    #10 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array)
    #11 /domains/somesite.nl/DEFAULT/fresh/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array)
    #12 /domains/somesite.nl/DEFAULT/fresh/wire/modules/PageRender.module(514): ProcessWire\TemplateFile->render()
    #13 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent))
    #14 /domains/somesite.nl/DEFAULT/fresh/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___renderPage', Array)
    #15 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array)
    #16 /domains/somesite.nl/DEFAULT/fresh/wire/core/WireHooks.php(782): ProcessWire\Wire->__call('renderPage', Array)
    #17 /domains/somesite.nl/DEFAULT/fresh/wire/core/WireHooks.php(782): ProcessWire\PageRender->renderPage(Object(ProcessWire\HookEvent))
    #18 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array)
    #19 /domains/somesite.nl/DEFAULT/fresh/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array)
    #20 /domains/somesite.nl/DEFAULT/fresh/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Page->render()
    #21 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute(true)
    #22 /domains/somesite.nl/DEFAULT/fresh/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___execute', Array)
    #23 /domains/somesite.nl/DEFAULT/fresh/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array)
    #24 /domains/somesite.nl/DEFAULT/fresh/index.php(55): ProcessWire\Wire->__call('execute', Array)
    #25 /domains/somesite.nl/DEFAULT/fresh/index.php(55): ProcessWire\ProcessPageView->execute(true)
    #26 {main}

     

  11. Dear Processwirez,

    After updating to 2.8.62 some code doesn't seem to work anymore.

    There are no more images on the front-end. Image url's on front-end are empty.

    if($page->mosaik_title_1) { echo "
    <div class='three columns'>
    <a href='{$page->mosaik_url_1}/'>
    <span class='m1'>{$page->mosaik_title_1}</span>
    <img src='{$page->mosaic_photo_1->eq(0)->getThumb('thumbnail')}' alt='{$page->mosaic_photo_1->description}' /></a></div>";}
    
    and
    
    foreach($page->children as $child)
                echo "
                    <div class='cat1 cat5'>
                    <div class='port-item-container'>
                        <div class='port-box'>
                                <a rel='bookmark' title='{$child->title}' href='{$child->url}'>
                                <img src='{$child->overviewimg->eq(0)->getThumb('thumbnail')}' alt='$child->title'>
                                </a>
                        </div>
                        <div class='port-item-title'>
                            <h6>{$child->title}</h6>
                            <span>{$child->overviewtxt}...<a href='{$child->url}'> Lees verder »</a></span>
                        </div>
                    </div>
                    </div>
                    ";

    Both codes are from different pages and both doesn't work anymore after the upgrade.

×
×
  • Create New...