MD OFFICAL Install problems

nowms's picture
nowms
Wed, 02/04/2015 - 20:47
#1
MD OFFICAL Install problems

Fresh full install with demo content using the restaurant theme creates the following error.

Fatal error: Only variables can be passed by reference in /public_html/elbrloc/sites/all/modules/contrib/views/views.module on line 741

I've completely wiped the site and tried reinstalling 3 times with the same result.

Any thoughts?

cindy's picture
cindy
Thu, 02/05/2015 - 00:00

Hi,

We have just updated to ver 2.1
What version are you using? If it is the latest version, we will check restaurant demo profile

nowms's picture
nowms
Thu, 02/05/2015 - 12:53

The new build worked.  Thanks

nowms's picture
nowms
Thu, 02/05/2015 - 13:08

I take that back.  The intital error is fixed however the site is throwing a bunch of errors.  

Contact Page: 

Notice: Array to string conversion in views_add_block_contextual_links() (line 738 of /public_html/elbrloc/sites/all/modules/contrib/views/views.module).

Notice: Array to string conversion in views_add_block_contextual_links() (line 738 of /public_html/elbrloc/sites/all/modules/contrib/views/views.module).

And alot of the other pages have this error which is the same that was happening on the website initially. This error seems to occur when logged into the website.

Fatal error: Only variables can be passed by reference in /public_html/elbrloc/sites/all/modules/contrib/views/views.module on line 741


Home 3D Slidebox page

Warning: Unterminated comment starting line 1120 in /public_html/elbrloc/sites/all/modules/contrib/views/handlers/views_handler_filter.inc on line 1120

Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /public_html/elbrloc/sites/all/modules/contrib/views/handlers/views_handler_filter.inc on line 1124


    nowms's picture
    nowms
    Thu, 02/05/2015 - 13:21

    I am going to submit a request for a refund at this time.  I don't have enough time to wait and try and have these resolved.  I've purchased other items from you that have worked great and I am sure that this one will be amazing once the few bugs are worked out.  

    Isaac's picture
    Isaac
    Sun, 02/22/2015 - 02:04

    Hey Cindy.. I know you won't get this until Feb 23rd, but I'm running into a similar error with the views module. I get the error¬

    'Fatal error: Only variables can be passed by reference in /sites/all/modules/contrib/views/views.module on line 741'

    This only happens when I try to access nodes 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122.

    I'm running Views 3.8, and this only happens when I access it from my device with a 1920x1200 display. It works as expected from my 1366x768 display. It looks like Views 3.10 has a similar problem, so I'm going to diagnose with my installation of Views 3.8.

    (NOTE: I dropped my 1920x1200 display into 1280x720 for testing, and it still yields an error. So much for hoping it's a quick fix.)

    On further testing, the error exhibits in Firefox 35.0.1 and Safari v8.0.3 (10600.3.18), on OSX 10.10.2; however, it does not occur on Firefox v34.0.5 or Safari v6.2.2 (8537.85.11.5), on OSX 10.8.5.

    And on even further testing, the problem on my end seems to actually be working on Safari 6.2.3 (8537.85.12.18).

    — BREAK — -

    Updated to views 3.10 and it looks like the problematic code is:

    • views_add_contextual_links($block['content'], $block_type, $view, $display_id);

    • $block['content'] = array('#markup' => $block['content']); 


    -Isaac

    PS: Standard technical versioning is 3.10, not 3.1 so please don't truncate the version. This is for your reference, my friend. Ask your developer for explanation.

    Isaac's picture
    Isaac
    Sun, 02/22/2015 - 02:09

    sites/all/theme/md_official/theme_settings.php lines 165-173:

    You have this commented out:

    function md_official_validate_theme_settings($form, &$form_state) {
       /* if($form_state['values']['social_array_hidden'] != null) {
            $form_state['values']['social_array_hidden'] = str_replace("http://","encode-http://",$form_state['values']['social_array_hidden']);
        }
        if($form_state['values']['contact_array_hidden'] != null) {
            $form_state['values']['contact_array_hidden'] = str_replace("http://","encode-http://",$form_state['values']['contact_array_hidden']);
        }
        */
    }

    Only when it's like that, you cannot save changes to the social icons. It should be.. I think I remember telling you guys about this a couple months ago:

    function md_official_validate_theme_settings($form, &$form_state) {
          if($form_state['values']['social_array_hidden'] != null) {
            $form_state['values']['social_array_hidden'] = str_replace("http://","encode-http://",$form_state['values']['social_array_hidden']);
        }
        if($form_state['values']['contact_array_hidden'] != null) {
            $form_state['values']['contact_array_hidden'] = str_replace("http://","encode-http://",$form_state['values']['contact_array_hidden']);
        }
    }

    cindy's picture
    cindy
    Wed, 02/25/2015 - 02:19

    Hi,

    Thank you very much for your feedback Issac

    @ Nowms 
    Pleasea check your server :  php version ?
    Try to update views module 3.10
    If you use php version < 5.2, please update  5.3 or 5.4

    jesuswilches's picture
    jesuswilches
    Thu, 03/05/2015 - 20:05

    Hi Cindy I did demo installation and I have this problem:

    Fatal error: Only variables can be passed by reference in /home/mysite/sites/all/modules/contrib/views/views.module on line 777

    I did updates and nothing, Help me please

    cindy's picture
    cindy
    Fri, 03/06/2015 - 03:21

    Hi,

    Which profile are you using? Which version?

    Please send us the version you are using to cindy@megadrupal.com (also this forum link)

    We will check again

    jesuswilches's picture
    jesuswilches
    Fri, 03/06/2015 - 08:38

    Hi Cindy, I did send the mail , anyway this is the info :
    Drupal Ver 7.34 ;
    PHP Ver 5.3.28,
    Profile : Fashion MD Official Install Profile

    Thanks for your quick attention

    jesuswilches's picture
    jesuswilches
    Mon, 03/09/2015 - 09:19

    Hi Cindy, I still have many problems with this template, tell me what is the correct way to install because I can´t give you access to the company server, remember last comunications:

    Fatal error: Only variables can be passed by reference in /home/mysite/sites/all/modules/contrib/views/views.module on line 777

    Same problem. I’m dissapointed. like other customers I have not time

    I did updates and nothing, Help me please or I will need my refund.

    cindy's picture
    cindy
    Mon, 03/09/2015 - 23:40

    Hi,

    Please re-comment the following line in file /home/yoursite/sites/all/modules/contrib/views/views.module for temporary fixing way

    //views_add_contextual_links($block['content'], $block_type, $view, $display_id);

    then we will check the profile again and send you the updated version

    Isaac's picture
    Isaac
    Tue, 03/10/2015 - 00:58

    Cindy, I think I remember hitting this bug... See my record dated February 22nd, 2014:

    Hey Cindy.. I know you won't get this until Feb 23rd, but I'm running into a similar error with the views module. I get the error
    "Fatal error: Only variables can be passed by reference in /sites/all/modules/contrib/views/views.module on line 741"
    This only happens when I try to access nodes 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122.
    I'm running Views 3.8, and this only happens when I access it from my device with a 1920x1200 display. It works as expected from my 1366x768 display. It looks like Views 3.10 has a similar problem, so I'm going to diagnose with my installation of Views 3.8.
    NOTE: I dropped my 1920x1200 display into 1280x720 for testing, and it still yields an error. So much for hoping it's a quick fix.
    On further testing, the error exhibits in Firefox and Safari v8.0.3, on OSX 10.10.2, but does not occur on Firefox v34.0.5 or Safari v6.2.2 with OSX 10.8.5.
    -Isaac

    PS: Standard technical versioning is 3.10, not 3.1 so please don't truncate the version. This is for your reference, my friend. Ask your developer for explanation.

    WORKBOOK
    Views 3.10¬
    Fatal error: Only variables can be passed by reference in /sites/all/modules/contrib/views/views.module on line 777
    Line 777 is:
    node/ 90 91 102    views_add_contextual_links($block['content'], $block_type, $view, $display_id);

    Line 774 is:
    $block['content'] = array('#markup' => $block['content']);
    node/ 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122

    node/ 75 76 77 78 79 80 81 82 83 84 85 86 Panels¬
    Fatal error: Call to undefined method stdClass::render() in /sites/all/modules/contrib/panels/panels.module on line 1130
    Line 1130 is:
      return ctools_plugin_api_info('views', $api, views_api_minimum_version(), views_api_version());

    Isaac's picture
    Isaac
    Tue, 03/10/2015 - 12:29

    Okay, I think it's related to the PHP version and/or PHP strict, as the server I was running into problems with was running PHP v5.3.29, but now That I moved it to a different server running 5.4.37 the error is gone.

    jesuswilches's picture
    jesuswilches
    Tue, 03/10/2015 - 13:49

    Hi , I forgot write yesterday, sorry for that,  thanks so much for your help ; now I have a question with a litttle problem this is the message:

    Warning: Illegal string offset 'fid' en md_official_preprocess_html() (línea 189 de/mysite/sites/all/themes/md_official/inc/front/template.process.inc).

    Thanks again

    Isaac's picture
    Isaac
    Tue, 03/10/2015 - 22:11

    Hello again Jesus, I think I remember bumping into that warning before, but I'll have to look through my notes to see if I have a definite solution for it.. however, given that it's simply a cautionary warning (whereas your other problem was a fatal error) you should be able to disregard it, unless it escalates to a situation where it refuses to recognize your uploaded files.

    But if you can tell me where the problem is cropping up, I'll see if I can reproduce the issue. Generally as a rule, warnings aren't critical, it just points to the fact that the coder was a bit sloppy.

    cindy's picture
    cindy
    Fri, 03/13/2015 - 23:41

    Hi,

    Please replace your current function with the following one:

    if(theme_get_setting('logo_normal_upload')) {
    $file_upload = theme_get_setting('logo_normal_upload');
    if(gettype($file_upload) == 'string'){
    $file_upload = drupal_json_decode($file_upload);
    $vars['logo_path'] = $file_upload['url'];
    }
    else {
    $vars['logo_path'] = $themepath.'/logo.png';
    }
    }

    Log in or register to post comments
    Have More Idea?

    We are here to build your website!

    No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.