We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Waow didn’t expect this already !

    I’ll give this a shot both locally and on my dedicated box, I’ll do a clean install and will clone live sites to see how that goes...
    Anyway : great !
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: Mark at Dec 21, 2006, 01:57 AM

      A clean install on PHP 5 (under MAMP) renders the following error on every page, manager or frontend
      
      Fatal error: Call to a member function bindValue() on a non-object in /Applications/MAMP/htdocs/modx_alpha/core/xpdo/xpdo.class.php on line 1482
      
      

      Which PHP 5 version is this?
        • 22303 MODX Staff
        • 10,725 Posts
        Ok, all you MAMP people. Please read the maroon letters on the first post in this thread before testing! You can verify in phpinfo; under the PDO extension, it lists the drivers enabled, and it appears MAMP only enables SQLite by default (brilliant for a package that is touting itself as MySQL oriented???)
          • 25663 MODX Staff
          • 12,272 Posts
          Sounds like a good time for a config check and making the maroon text a lot bigger in the first post. tongue
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 6726
            • 7,075 Posts
            Yeah well, personnally I was fooled by the assumption that the PDO mySQL driver was enabled by default with PHP 5.1+ configs, but it’s another reason never to indulge in assumptions !

            Quote from: OpenGeek at Dec 21, 2006, 09:17 AM
            Ok, all you MAMP people. Please read the maroon letters on the first post in this thread before testing! You can verify in phpinfo; under the PDO extension, it lists the drivers enabled, and it appears MAMP only enables SQLite by default (brilliant for a package that is touting itself as MySQL oriented???)

            If you looked at my server it’s the same and the PHP doc says "If you’re running a PHP 5.1 release, PDO and PDO_SQLITE is included in the distribution; it will be automatically enabled when you run configure." It’s not a choice, just default PHP config.

            Edit : I found why MAMP is not loading the PDO MySQL driver while extension=php_pdo_mysql.so is not commented : it was missing a crucial line
            Even with the driver being loaded, I am still stuck with a non-working 0.9.7... huh
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l'outil id
              • 26435
              • 1,193 Posts
              Quote from: sottwell at Dec 21, 2006, 02:25 AM


              I am not 100% positive, but I am pretty sure that if you are including files through [MODxRoot]/manager/index.php5, then they are, through inclusion, processed as php5.
              That may be true, but there are way too many places in the manager’s code where the index.php file is specifically referred to. It would take hours to dig through and replace all of those, even with a file editing system that did search/replace across multiple files that’s a chancy thing to do.

              Susan, try adding this to your .htaccess file
              AddHandler application/x-httpd-php5 .php


              -sD-
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 26435
                • 1,193 Posts
                Did anyone else get this to work yet?
                Susan, David, Mark... you guys are also using MAMP
                Any luck?

                damn, I either get the error posted earlier about the non object, or a blank page.

                -sD-
                  Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                  All of the above... in no specific order.


                  I send pointless little messages
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I upgraded to the latest MAMP (1.4.1) and it’s working just fine.

                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 26435
                    • 1,193 Posts
                    yeah I have been using 1.4.1 for a few months now, but I finally got it working by shutting off php5 and running php4, which is not what I want to do. I want to take advantage of PHP5’s native PDO support. there are a few problems with MAMP as far as I can tell.

                    1) pdo_mysql.so is loaded by default, but only works with MySQL 3.x/4.x
                    2) MAMP ships with MySQL 5.x
                    3) there is a binary for supporting MySQL 5.x, but it is a windows only .dll
                    4) if pdo_mysql could work with MySQL 5.x (which it can’t) the pdo extensions in the default php.ini in the php5 folder are loaded after the mysql, pgsql, and sqlite extensions which means they are unusable. I sent an email to the MAMP folks letting them know about it, so hopefully it will be resolved in the next revision. Until then, I guess I will continue to test with php 4.4.4

                    -sD-
                    Dr. Scotty Delicious, Scientist.
                      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                      All of the above... in no specific order.


                      I send pointless little messages
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      That’s odd, I just did the upgrade this morning, and it’s definitely running php5, and it’s working just fine huh

                      Maybe there’s some bug fixes in the latest download? I downloaded it yesterday... I’m using the PPC version, although I don’t think that should make a difference.

                      Very interesting... this is different in the phpinfo dump

                      ’--with-pdo-mysql=shared,/Applications/MAMP/Library’
                      ’--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg’
                      before, it was

                      --with-pdo-mysql=shared,/Applications/MAMP/bin/mysql4’
                      ’--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg’
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org