ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Create Course Blank Page


  • 2011-04-05 17:55:47

    Create Course Blank Page

    Hello, After a fresh install the create course page is giving me a blank page. /programs/mods/_core/courses/admin/create_course.php

    Any thoughts?

    Things to describe:
    ATutor Version:
    2.0.2(r10589 - 2010-12-21 16:47:09). Check Latest Version.
    PHP Version:
    5.2.15
    MySQL Version:
    5.1.55-log
    OS:
    Linux 2.6.18-194.26.1.el5

  • 2011-04-06 10:02:48

    Re: Create Course -> Blank Page

    There are lots of reasons why you might get a blank screen. Use the search to find past posts on the subject.

  • 2011-04-07 15:16:26

    Re: Create Course -> Blank Page

    I've searched for a few hours now with out finding someone who has the same situation.

    I've commented out sections of the code and it seems to be coming down to the Backup Module / Class.

    I'm a little stuck to where the error is and why it's causing a blank page. :(

  • 2011-04-07 16:41:55

    Re: Create Course -> Blank Page

    Have you tried reinstalling?

  • 2011-04-07 17:05:11

    Re: Create Course -> Blank Page

    Yes, I've tried a reinstall. I'm not to sure how it will make a difference though? Same files / execution.

    Could it be a server setting for the back up?

  • 2011-04-07 17:37:29

    Re: Create Course -> Blank Page

    It's not uncommon for files to become corrupted when unzippping. If reinstalling didn't fix the problem, then we can probably rule out a corrupted file.

    Next thing to do would be check the tail of the php and apache error log, and see if you can find the problem there.

  • 2011-04-11 16:46:00

    Re: Create Course -> Blank Page

    I've been going through and doing an echo test. Strolling through the code to see wehre it gets hung up.

    It seems to get caught on this include:
    include_once(AT_INCLUDE_PATH.'../mods/_core/file_manager/filemanager.inc.php'); //copy/delete folder

    in the zipfile.class.php file.

    Any thoughts?

  • 2011-04-11 16:54:13

    Re: Create Course -> Blank Page

    Perhaps there's a problem in the zipfile.class. Thought its not a problem others are reporting.

    What do the error logs say?

  • 2011-04-11 17:53:20

    Re: Create Course -> Blank Page

    I don't have access to a master error log, but in do notice a file in the root that says error_log. It says some other stuff from our wordpress installation but nothing from the route / files where atutor is installed.

    I should note on our server we have a an older live version of Atutor installed in a sibling sub folder.

    So our website looks like this:

    Wordpress
    - Old Atutor Files
    - 2.02 Atutor Files

    Each containing their own database. I don't think this will affect anything, but just putting it out there.

    There is one way to make an error log for the zipfile.class and that's to bring the file up directly in the browser... but of obvious reasons it's not picking up the AT_INCLUDE_PATH so it says that it can't include pclzip.lib.php / file manager.

    After doing some more echo testing... I've narrowed it down to the filemanger.inc.php class.

    But... here's the weird thing if I echo before the include_once of the file it will echo my test... but if I echo at the top of the filemanager.inc.php file it won't echo my test... what gives? Is it the way that the file is included?

  • 2011-04-11 17:57:51

    Re: Create Course -> Blank Page

    Ok... starting to get somewhere I've changed the include_once to -> include(AT_INCLUDE_PATH.'../mods/_core/file_manager/filemanager.inc.php'); //copy/delete folder

    In zipflile.class.php

    My echo test worked... now so I also changed the require_once in the Backup.class.php call tot he filemanger to:
    require(AT_INCLUDE_PATH.'../mods/_core/file_manager/filemanager.inc.php'); //readfile_in_chunks folder

    Almost there... now the file runs and isn't blank but I receive an error:

    Fatal error: Cannot redeclare copys() (previously declared in /home/acvancc/public_html/alexandercollege.ca/programs/mods/_core/file_manager/filemanager.inc.php:26) in /home/acvancc/public_html/alexandercollege.ca/programs/mods/_core/file_manager/filemanager.inc.php on line 49

    Anyway to get past this or do you know why the require_once and include_once are acting weird?

    Thanks

  • 2011-04-12 09:23:10

    Re: Create Course -> Blank Page

    Interesting.

    Can you put back require_once and

    echo AT_INCLUDE_PATH.'../mods/_core/file_manager/filemanager.inc.php';

    then make sure the "filemanager.inc.php" exists with the correct path.

    You may want to experiment the same echo with require, include and include_once.

  • 2011-04-12 12:56:31

    Re: Create Course -> Blank Page

    I've got it working now... but it's kind of messy / requires a bit of grunt work. It seems the problem is with my servers include_once / require_once php function. It ignores it completely... so I've reverted back to require and include then used a simple check to see if the function has been loaded already in the class files.

    Example:
    if(function_exists('copys') != true){
    function copys(){
    //function goes here
    }}

    Dirty but it works, let me know if anything else comes to mind, thanks.