I know - I'm sorry about the drift in subject - I feel like I'm going backwards at the moment so thanks hugely for any pointers.
I'm running Apache 2.2.11 and PHP 5.2.8 on the live site and 5.3.0 locally - should I downgrade? As I understand it, CakePHP 1.2 requires an upgrade to my code (especially database searches) and at the moment I'd rather rewrite the CMS without Cake as that'd remove the big black impenetrable box for me. I haven't yet tried baking a new app because I don't suspect I'll find the problem on my local machine on a vanilla app - although I'm considering renting an identical 'production' server space and trying it there. Error reporting is set to E_ALL but I have tried E_ERROR and got only slightly fewer errors. I am using the same version of CakePHP locally (1.1.17.5612) as I want to get the site working locally before upgrading and testing. Thanks hugely for everyone's support Chris On Aug 14, 4:23 pm, "Brendon Kozlowski (Realm)" <[email protected]> wrote: > Wow wow wow. This question has quickly become about 8 separate > questions, none of which still seem to directly pertain to the > original. ;) Your NOTICE, WARNING, and DEPRECATED error messages are > PHP-related, due to the settings in php.ini. I thought CakePHP > usually overrides that setting, but if the local server isn't yet 100% > working properly, perhaps Cake itself isn't running properly. > > - Which version of PHP are you running on your local server (hopefully > not 5.3 quite yet, but a 5.2.x version)? > - Which version of CakePHP did you just upgrade to? CakePHP 1.3 is > for PHP 5.3, but still has a few lingering issues. 1.2.4 is the most > recent stable version that I would recommend while trying to fix > unknown issues. > - What is your php.ini's error_reporting set to? You'll probably want > it set to E_ALL & ~E_NOTICE > - Did you try creating a simple baked model, controller, and view in > your other site and test saving the URL and text data, or did you skip > to upgrading as you felt it'd be better anyway? > > On Aug 13, 8:38 pm, technicaltitch <[email protected]> wrote: > > > > > Sorry again - ignore the last two posts - they were because I'd added > > AddModule mod_rewrite.c to Apache 2 > > > On Aug 14, 1:32 am, technicaltitch <[email protected]> wrote: > > > > By they don't 'work', I mean the browser says "Not Found. The > > > requested URL /users/admin_index was not found on this server." > > > > On Aug 14, 1:29 am, technicaltitch <[email protected]> wrote: > > > > > Sorry forgot to say - that is the homepage, which route.php seems to > > > > be successfully redirecting to the articles_controller > > > > volunteer_animal_refuge method. I can't get the direct URLs to work, > > > > eg,http://localhost:8080/users/admin_indexorhttp://localhost:8080/public... > > > > > On Aug 14, 1:24 am, technicaltitch <[email protected]> wrote: > > > > > > These are the error messages on my local setup: > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\object.php on line 94 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php > > > > > on line 84 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\model\connection_manager.php > > > > > on line 107 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\security.php on line 48 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\inflector.php on line 65 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\configure.php on line 89 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 157 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\dispatcher.php on line 221 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on > > > > > line 308 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on > > > > > line 347 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on > > > > > line 535 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\controller.php on > > > > > line 805 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\controller\component.php on > > > > > line 125 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\view\view.php on line 687 > > > > > > Deprecated: Assigning the return value of new by reference is > > > > > deprecated in C:\wamp\www\cake\cake\libs\class_registry.php on line 55 > > > > > > Warning: call_user_func_array() expects parameter 2 to be array, null > > > > > given in C:\wamp\www\cake\cake\dispatcher.php on line 263 > > > > > > Notice: Undefined variable: banner_image in C:\wamp\www\cake\app\views > > > > > \layouts\public_site.thtml on line 42 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 2 > > > > > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 2 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \elements\LangsAndMotto.thtml on line 13 > > > > > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views > > > > > \elements\LangsAndMotto.thtml on line 16 > > > > > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake > > > > > \app\views\elements\HtmlBlock.thtml on line 8 > > > > > Html Block motto_esp not found. > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 27 > > > > > > Notice: Undefined variable: main_menu in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 27 > > > > > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake > > > > > \app\views\elements\Menu.thtml on line 8 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 30 > > > > > > Notice: Undefined variable: sub_menu in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 30 > > > > > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake > > > > > \app\views\elements\Menu.thtml on line 8 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 33 > > > > > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 36 > > > > > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake > > > > > \app\views\elements\HtmlBlock.thtml on line 8 > > > > > Html Block main_menu_blurb_esp not found. > > > > > [admin click here] > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 59 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 74 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 77 > > > > > > Notice: Undefined variable: news_menu in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 77 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \elements\NewsMenu.thtml on line 11 > > > > > Noticias: > > > > > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake > > > > > \app\views\elements\NewsMenu.thtml on line 24 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 82 > > > > > > Notice: Undefined variable: html_blocks in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 85 > > > > > > Warning: Invalid argument supplied for foreach() in C:\wamp\www\cake > > > > > \app\views\elements\HtmlBlock.thtml on line 8 > > > > > Html Block news_menu_blurb_esp not found. > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 100 > > > > > > Notice: Undefined variable: article in C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 118 > > > > > > Notice: Undefined variable: body_override in > > > > > C:\wamp\www\cake\app\views > > > > > \articles\volunteer_animal_refuge.thtml on line 119 > > > > > top > > > > > > On Aug 13, 10:54 am, Bert Van den Brande <[email protected]> wrote: > > > > > > > Are you working in CakePHP debug mode ? I would advise setting the > > > > > > debug level to 2 , this would output performed sql queries which can > > > > > > be usefull in this case to find the cause of the error. > > > > > > > Also, come to think of it ... I think Cake gives 404 errors when in > > > > > > production mode (debug level 0), thus hiding the real error message. > > > > > > > Good luck ! > > > > > > > On Wed, Aug 12, 2009 at 12:45 PM, > > > > > > > technicaltitch<[email protected]> wrote: > > > > > > > > Thanks hugely delocalizer and bert and anyone else who reads > > > > > > > this. I > > > > > > > am trying to get the site working on Apache locally (I did have > > > > > > > it but > > > > > > > the hard disk crashed a couple months ago and I'm struggling > > > > > > > hence the > > > > > > > delay). > > > > > > > > I hadn't come across debugging PHP before - sounds very useful. > > > > > > > What > > > > > > > is the generally recommended setup for debugging PHP? I've found a > > > > > > > couple Eclipse plugins - EclipsePDT based on xdebug and PHPeclipse > > > > > > > which seems more basic. > > > > > > > > The string length does not seem relevant - the two strings > > > > > > > currently > > > > > > > isolated are: > > > > > > > >http://geocities.com/ [ed: this is not a link - this is the > > > > > > >text > > > > > > > I enter into the text field that creates the error] > > > > > > > > and the two Spanish sentences in my original post starting "Los > > > > > > > animales silvestres..." - either of the sentences on its own does > > > > > > > not > > > > > > > crash, just > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
