Oh And Thank You for your help most important On Jun 28, 1:37 am, MercedesAMG <[EMAIL PROTECTED]> wrote: > OK I changed the .htaccess file in the root and now the debug error > messages show up and the missing helper is the linkhelper > > so I added a file in app/views/helpers/link.php > with the following: > <?php > > class LinkHelper extends Helper { > > } > > ?> > and guess what it worked. > > I'll probably keep adding .htaccess files with Add Handler as opposed > to changing to .php5 > > On Jun 28, 12:59 am, MercedesAMG <[EMAIL PROTECTED]> wrote: > > > Here is a more interesting potential solution: > > from my webhost: > > just not sure which .htaccess file to alter ... > > > Do Rochen support both PHP4 and PHP5? > > Rochen is proud to be one of the very first hosting providers to offer > > dual PHP platform support meaning we support both PHP4 and PHP5 > > alongside each other on the same server. This is extremely useful > > because it means you can run a PHP4 script in one directory and a PHP5 > > script in another directory of the same account. You can select on the > > fly the PHP build you wish to use. There is no need to host sites on > > different servers etc. > > > Some hosts have opted to make a full migration to PHP5 but in our > > opinion this is an irresponsible thing to do as it results in many > > popular scripts breaking that are not PHP5 compatible. We do however > > recognize the need for PHP5 support to allow clients to deploy the > > latest cutting edge applications in a production environment. Our dual > > PHP platform support system provides the best of both worlds. > > > There are two very simple ways you can take advantage of PHP5 support > > under your account - > > > * 1) Simply name the script you wish to execute using PHP5 .php5 > > instead of .php. That's all you need to do. > > > * 2) Alternatively, if you would like scripts named .php to > > execute using PHP5 instead of PHP4 then simply drop the following > > contents into a .htaccess file within the directory containing the > > PHP5 script - > > Quote: > > AddHandler application/x-httpd-php5 .php > > > By default all scripts named .php or .php4 will execute using PHP4 > > unless you are using the above .htaccess directive and scripts > > named .php5 will execute using PHP5. We will be keeping PHP4 as the > > default installation on all servers for the foreseeable future. As > > PHP5 develops over the next few years though, we may eventually change > > the configuration so that PHP5 is the default PHP installation. > > > We have deployed the dual PHP support system on all shared (premium > > and non-premium) servers at no extra cost and it is available for > > immediate use. This has not been deployed on Managed Dedicated Servers > > as some clients are running very custom configurations, some are > > already running PHP5 and others simply don't need this type of > > support. If you would like dual PHP support though then please open a > > ticket and we will try and arrange this for you. > > > On Jun 28, 12:50 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > > In your default.ctp do a debug on $this->helpers and/or > > > $this-.>viewVars > > > > It seems to me that the helpers aren't being passed through to the > > > view object. > > > > Html is the only helper by default (cake/libs/view/view.php line 115) > > > which is then supposed to be overwritten by the controllers helper > > > (line 289) which is inside a __construc() which I think is PHP5 only - > > > this is probably the cause of the issue on PHP4. > > > > Geoff > > > --http://lemoncake.wordpress.com > > > > On Jun 28, 4:33 pm, MercedesAMG <[EMAIL PROTECTED]> wrote: > > > > > localhost is php 5.2.1 > > > > trial site was using same php > > > > production site is using php 4.4.7 > > > > > the default.ctp is pretty generic from the cake install I removed > > > > anything possibly flaky and still get same error. > > > > thanks > > > > > On Jun 28, 12:04 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > > > > Is there anything on the first 36 lines that may or may not cause an > > > > > issue or is it all html? > > > > > > I can't see why any of that would be causing issues...what version of > > > > > PHP is the local and remote hosts? > > > > > > --http://lemoncake.wordpress.com > > > > > > On Jun 28, 3:35 pm, MercedesAMG <[EMAIL PROTECTED]> wrote: > > > > > > > In the default.ctp i have the following: > > > > > > Line 37<?php echo $html->charset('UTF-8');?> > > > > > > 38<?php echo $javascript->link('prototype'); ?> > > > > > > 39<?php echo $javascript->link('jQuery'); ?> > > > > > > > I have in app/app_controller.php the following: > > > > > > > class AppController extends Controller { > > > > > > var $helpers = array('Html', 'Link', 'Form', 'Javascript', 'Ajax'); > > > > > > > } > > > > > > > and I have the same helpers line in every controller, just in case > > > > > > and > > > > > > in fact they were there before I made a new app_controller.php file. > > > > > > > I have debug on but the only line showing for an error is the line > > > > > > 38 > > > > > > error. ... > > > > > > but in the upper title of the page it says missing helper Class > > > > > > > so i checked that all out. > > > > > > > I was able to have the entire application work on localhost and on a > > > > > > test live site. This application is installed on a new production > > > > > > server. > > > > > > Thanks > > > > > > On Jun 27, 10:51 pm, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > > > > > > Helpers used in the default.ctp need to be either included in > > > > > > > every > > > > > > > controller or in the app_controller.php > > > > > > > > What is the function that it it can't find? i.e. what is on line > > > > > > > 38? > > > > > > > > --http://lemoncake.wordpress.com > > > > > > > > On Jun 28, 2:15 pm, MercedesAMG <[EMAIL PROTECTED]> wrote: > > > > > > > > > here is the erro message I get > > > > > > > > > Fatal error: Call to a member function on a non-object in /home/ > > > > > > > > totalme/public_html/app/views/layouts/default.ctp on line 38 > > > > > > > > > i have helper is controller and scripts are in app/webroot/js > > > > > > > > > tried jquery and then back to prototype same error message > > > > > > > > > I am missing ?????- Hide quoted text - > > > > > > > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---