Results 1 to 2 of 2

Thread: PHP Parse error on campaigns after upgrading sugar 6.1 to 6.3

  1. #1
    andrewpetrov is offline Sugar Community Member
    Join Date
    Mar 2010
    Posts
    11

    Default PHP Parse error on campaigns after upgrading sugar 6.1 to 6.3

    Hi! I just updated sugacrm from 6.1 to 6.3. Most things work, but I am not able to view individual campaigns. When I click on one, my web browser gets a 500 error, and PHP spits this out:

    [05-Dec-2011 23:30:59] PHP Parse error: syntax error, unexpected T_BOOLEAN_AND in /var/www/sugar6.3/modules/Campaigns/views/view.detail.php on line 125

    I've searched and haven't found anything. I'm running ubuntu 10.04 with php 5.3.2.

  2. #2
    antoinebelmont is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    25

    Smile Re: PHP Parse error on campaigns after upgrading sugar 6.1 to 6.3

    Hi andrewpetrov:

    I have the same problem like you, when i upgrade from 6.2 to 6.3, after analyzing the line within error_log, i see the line 125 in the view.detail.php document, if you see the composition of the "if" sentence, you must see that appears like:

    Code:
    if ($name != 'prospectlists' && $name!='emailmarketing' && $name != 'tracked_urls') {
                    /* BEGIN - SECURITY GROUPS */
                    	&& $name != 'securitygroups'
                    /* END - SECURITY GROUPS */
                        //exclude subpanels that are not prospectlists, emailmarketing, or tracked urls
                        $subpanel->subpanel_definitions->exclude_tab($name);
                    }
    If you can see, there is a condition in a wrong place, the problem solve just include the condition in the correct place like:

    Code:
    if ($name != 'prospectlists' && $name!='emailmarketing' && $name != 'tracked_urls'/* BEGIN - SECURITY GROUPS */&& $name != 'securitygroups'/* END - SECURITY GROUPS */) {
                        //exclude subpanels that are not prospectlists, emailmarketing, or tracked urls
                        $subpanel->subpanel_definitions->exclude_tab($name);
                    }
    and that´s it, working again, i hope this post can help you, this is my first helping post, regards

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error viewing Campaigns after upgrading to 5.1
    By cvanp in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-11-05, 07:23 PM
  2. Replies: 4
    Last Post: 2006-11-02, 04:20 PM
  3. Replies: 1
    Last Post: 2006-09-28, 09:24 AM
  4. Replies: 1
    Last Post: 2006-09-07, 12:38 PM
  5. Replies: 3
    Last Post: 2006-02-12, 01:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •