• Resolved bgfrancey

    (@bgfrancey)


    Hello,

    I have a client who is using mDocs on their site and have two issues at the moment relating mainly to the description of the docs.

    The site is https://pact.ca/contracts-resources/

    The description of the files does not show up when they are clicked on in the dropdown menu. This was an issue we had before. It did work at one time, but there was about a 5 second lag on having the description actually show up.

    On the file page itself, there is not information being displayed: https://pact.ca/mdocs-posts/2015-2018-canadian-theatre-agreement-fee-booklet/

    And lastly, when a member logs in to download a file, they are directed to the description page above and there is no option to download the file.

    Any help you can provide for these issues would be great.

    Thanks,
    Blair

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter bgfrancey

    (@bgfrancey)

    Great to see the name of the file up there! But the button doesn’t show up – here’s the code and the screen together: https://cloud.bfdesign.ca/2u2k0g2A0Q0D

    Plugin Author bhaldie

    (@bhaldie)

    I don’t see the editor to the file I made. It looks the same except for the 2 new lines we added earlier.

    Make sure you delete lines 115 to 122 and replace it with:

    
    ?><input type="button" onclick="mdocs_download_file('<?php echo $the_mdoc['id']; ?>','<?php  echo $the_post->ID; ?>');" class="mdocs-download-btn btn btn-primary" value="<?php echo __('Download','memphis-documents-library'); ?>">
    Thread Starter bgfrancey

    (@bgfrancey)

    Sorry about that – still didn’t seem to have any effect though: https://cloud.bfdesign.ca/2g0m421F0N0i

    Plugin Author bhaldie

    (@bhaldie)

    okay revert back to the old file… what is the php error level set to for this site.

    My thought is you have the error levels set to off and there is a php error occurring.

    if you don’t know you can add this line of code to your themes function file:

    
    ini_set("error_reporting", E_ALL);
    
    Thread Starter bgfrancey

    (@bgfrancey)

    I’ve added the line to the child theme’s functions.php file – where would I find if the error levels have been turned off or on?

    Plugin Author bhaldie

    (@bhaldie)

    they are in your php.ini file… it a option.

    if they are set to off errors will not display.

    Thread Starter bgfrancey

    (@bgfrancey)

    I think that’s something I have to get the server people to do – I don’t believe I have access to that. Will get back to you.

    Thread Starter bgfrancey

    (@bgfrancey)

    The server people got back to me:

    The php.ini file can only be viewed from our end. We can confirm that error reporting is set to E_ALL by default on all sites. Here is the entry in php_ini:

    error_reporting = E_ALL & ~E_DEPRECATED

    So if the error log is enabled, where do I find it (sorry, this is a bit out of my realm of understanding). Do I have to ask them for it?

    Plugin Author bhaldie

    (@bhaldie)

    if you don’t see any errors on the site itself you don’t have any errors. So we can rule out errors as the cause for the problem.

    So the next step is to look at your apache server logs, I think we have done this before I can’t remember but there may be details in there that is causing the 500 error.

    It is a very generic error and very hard to debug.

    Edit: try opening your wp-config.php and change this variable:

    
    define('WP_DEBUG', false);
    

    to this:

    
    define('WP_DEBUG', true);
    
    • This reply was modified 7 years, 3 months ago by bhaldie.
    Thread Starter bgfrancey

    (@bgfrancey)

    Hi there –

    I have the php error logs – you can download them here: https://cloud.bfdesign.ca/0n030S0B1r0k

    These are from the past 7 days.

    Plugin Author bhaldie

    (@bhaldie)

    sorry for the late response i’ve been on holidays. I don’t see anything unusual with the error logs.

    Thread Starter bgfrancey

    (@bgfrancey)

    Hope you had a good holiday!

    Is there anything else you can think of that might be affecting the plugin?

    Plugin Author bhaldie

    (@bhaldie)

    I’m really at a lose as to why this is not working… there seems to be some php issue but there is nothing showing up in your error logs.

    Unfortunately I can’t think of anything else that could be causing the issue.

    Thread Starter bgfrancey

    (@bgfrancey)

    If it’s a PHP issue, would going back to the server people be of any use? I know we talked to them at one point and it seemed to be okay on their end, but perhaps there’s something else I can ask them about?

    Appreciate your time on this matter!

    Plugin Author bhaldie

    (@bhaldie)

    Yeah, I don’t think it is a server issue… I think it has to do with my code. But I can’t figure out what the is as of yet, and Im running out of ideas.

    Im trying to get out a new version soon but I’ve been busy with other business. When that comes out maybe that will solve the issue.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Issue with Description and file page’ is closed to new replies.