Jump to content

AlexL

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by AlexL

  1. Hi guys

    OK - so I've upgraded from 2.3.7 to 2.4

    - I removed and copied wire/

    - I run nginx using configuration here as a base

    - I'm on PHP 5.5.9

    Symptom

    When I select field/template from the pulldown menu or from the Setup page I SOMETIMES get returned an array

    ie - 

    [{"id":29,"name":"basic-page"},{"id":43,"name":"game"},{"id":1,"name":"home"},{"id":45,"name":"platform"},{"id":26,"name":"search"},{"id":34,"name":"sitemap"}]

    This is in plaintext on the screen - other times I get the appropriate page

    All other function within the site and admin interface appear to operate completely fine.

    Any suggestions ideas on where to go for troubleshooting?

    Thanks!!!

    Alex

  2. I just went and added support for pagination.

    I pushed the update to the dev branch of the module you find here: https://github.com/somatonic/ModulesManager/tree/dev

    Still working out on the details for categories. Currently it just filters on a per page basis, so it possible there's a page not showing anything if category filter is set.

    Once you changed the limit in modules settings, you should hit refresh first on the ModulesManager screen to delete all cache files. It will create a cache file per page.

    So it all works now with unlimited modules but still need some work and I'm waiting for the JSON feed from modules.processwire.com to allow for more filtering.

    Thanks heaps Soma!  I'll try checking out the dev branch this weekend.

    Alex

  3. Hi guys

    I'm getting the exact same issue as above as ceberlin except now there appears to be over 200 modules and am not getting some in my list (such as the Zurb Foundation Site profile)

    To clarify

    - Modules manager fetches the first 200 modules (appears to be alpha)

    - I then update the limit of modules in settings

    - Anything over a limit of 200 results in only the first 10 being fetched (alpha sorted)

    - Resetting back to 200 brings in the list of 200 again

    Thanks!

    ps - I love this module!!

    Alex 

  4. Wowsers - what an informative thread!!  Going to check some of these recommendations out now! 

    I currently use TextWrangler as it is free and was the most like Notepad++ when I moved from Windows to Mac.

    And I almost forgot - Midnight Commander for CLI hacking!

  5. Server side I use arch in VirtualBox / Linode VPS - I also run a LEMP stack (Nginx/MariaDB).

    For Development I use a mac w/ TextWrangler, SequelPro, iTerm2, MySQL Workbench & Cyberduck

    This combo works great for me!!!

  6. OK - that looks exactly like what I'm after!!  

    After reading your code I've just noticed the $file->rename and found it in the cheatsheet as well - feeling a little silly  :unsure:  - thanks heaps!!!  :cool:

    Can't wait to try it out - love learning all these new things :D

    Alex

    • Like 1
  7. Hi guys

    Firstly - I LOVE PROCESSWIRE! I've had a little bit to do with modx and kentico and boy do I love working in PW.  Most problems I've been able to solve on my own due to the super helpful responses already in the forums - but I've hit a hitch.

    The core of the problem is the image resizer is not working for me.  I believe that the issue relates to a file that has a .png extension but when I look at exif it is acutally a jpeg.  So I want to rename it.  When I load the image it is from an external URL

    //Bootstrap ProcessWire
    include("/[PATH]/index.php");
    
    $page = new Page(); 
    [FIELD SETTING FOR NEW PAGE]
    
    $page->save();
    		
    $page->Image = $row['imageUrl']; //$row is from previous MYSQL select
    $page->save();
    

    so far so good - except now I want to pass that file through exif_imagetype to check what the actual image type is and then rewrite the file with the correct extension.

    Something like

    if (exif_imagetype($image->url) = IMAGETYPE_JPEG) {
        $image->ext = 'jpg';
    }
    

    etc...

    However I'm getting 'Can't use function return value in write context' from the CLI for the exif command.

    Sorry it's so long winded I guess my questions are

    1. Is it possible to pass the file to exif? What am I doing wrong above?

    2. How do I programatically rewrite the extension?

    3. Am I doing this completely wrong and should I be writing a hook?

    Thanks loads!!!

    Alex

×
×
  • Create New...