Jump to content

FrancisChung

Members
  • Posts

    472
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. FrancisChung's post in Bootstrapping Processwire in PHPUnit was marked as the answer   
    Actually, I had to reinstall MAMP Pro as I realised it was causing other issues.
    Unfortunately, I saw your post after I figured it out Marcus. (Could have saved me hours of pain).
    But thanks for the post.
    Definitely will come in handy for other users stumbling here,.
  2. FrancisChung's post in Copying pages or content from one Processwire instance to another was marked as the answer   
    Thanks for the feedback Adrian. 

    I've had some mixed results with the Migrator. It worked for some of our content but it didn't seem to work for Blog Articles i was trying to export.
    But I've realised the Blog are complex objects that have a lot of dependencies and I may have not specified them correctly.
    The Blog articles i'm using are part of the ProcessBlog module.
    All in all it's been positive overall and I think it's probably best for me to stick to simple pages or objects when it comes to the Migrator.
    I look forward to the bug fixes and I hope it gets the love and attention it deserves.
  3. FrancisChung's post in Any PHPStorm users here who uses phpUnit? Setup question was marked as the answer   
    After spending hair pulling hours & days, I've figured it out.
    I basically had to create a seperate phpunit.xml configuration file and go from there.
    The details are in :
    http://stackoverflow.com/questions/34225720/keep-getting-you-cannot-serialize-or-unserialize-pdo-instances-in-phpunit-usin/34231873#34231873
  4. FrancisChung's post in $page not saving during Bulk Upload was marked as the answer   
    It turned out to be a line break in some of the rows which I couldn't spot with the various text editors I was using .... Aaargh .... I'll probably have to strip them out before I process the file again.

    Again, thanks for the prompt responses.
    You guys are the best!
  5. FrancisChung's post in Can't instantiate PageArray was marked as the answer   
    Hi Pete,
    Thanks for the prompt reply (on a Sunday!)
    I'm using Processwire 2.6.x. I would be hesitant to move to v3.x mainly because it's Alpha software and it's for a site that's already Live at the moment.
    I also haven't built enough Unit Tests to be confident to doing such a migration.
    You mentioned Root Namespace in your reply, so I tried to instantiate using \PageArray and it seems to have worked.
    Thanks again!
  6. FrancisChung's post in Search Box Component? was marked as the answer   
    Try googling using the words "Expandable Search Codepen".
    There's tons of examples out there and you can pick out the one that has the characteristics you're looking for.
    Good hunting!
  7. FrancisChung's post in Testing for Page / Category membership was marked as the answer   
    I ended up using the following code
    $testPages->find("category.id=$id")
    but your suggestion definitely put me in the right direction for the solution.
    Thanks again!
  8. FrancisChung's post in Trouble Debugging ProcessWire using XDebug + PHPStorm was marked as the answer   
    Update : XDebug seems to work with Processwire & PHP 5.5 but not PHP 5.6 or above.
    I think PHP 5.6 introduced a new magic method for __DebugInfo() and it's problematic when it tries to debug Processwire.
    Not sure if Processwire objects are using var_dump().
×
×
  • Create New...