Quantcast
Channel: Installing and upgrading help
Viewing all 47048 articles
Browse latest View live

Can not read file, either file does not exist or there are permission problems error

$
0
0
by antonio ortega.  

Hi everyone!


I have some issues with my upgrade moodle from 2.9.7 to 3.0

I got the same errors messages: "Can not read file, either file does not exist or there are permission problems"

I read that I need to find out contenthash.

In my moodledata directory I can not find the file: contenthash


Any idea to fix my moodle system


Thanks in advanced.



Re: Changed Site to SSL and email fails. Moodle 3.8.1+

Re: Can not read file, either file does not exist or there are permission problems error

$
0
0
by Ken Task.  

Contenthash is a column in the db for moodle - mdl_files table.

Query something like this ... given you know the human name of the file ... example: known filename mypic.jpg

Query

select contenthash,filename from mdl_files where filename='mypic.jpg';

The contenthash looks like:

276f7718d18a9b776757c052f2dd85b9b55ccfbf

which tells you that the 'mypic.jpg' file is in:

moodledata/files/27/6f/ and is called

276f7718d18a9b776757c052f2dd85b9b55ccfbf

That help?

'SoS', Ken

Re: need help in moodle configuration

$
0
0
by Luis de Vasconcelos.  

You could use course categories to structure the different courses into diferent categories. Example: you could create a course category for each teacher. Each teacher then puts his/her courses in their respective category. Or you could create a category for each grade instead... Whatever suits your way of working best.

Re: Can not read file, either file does not exist or there are permission problems error

$
0
0
by Luis de Vasconcelos.  

How did you install the 3.0 code? Did you copy it over the 2.9.7 code? Or did you create a different directory for the 3.0 code?

Check the permissions in the 3.0 code folder and make sure that your web server (Apache?) user has full access to the 3.0 folder (and sub-folders).

Re: Can not read file, either file does not exist or there are permission problems error

$
0
0
by Ken Task.  

You should also check ownerships/permissions on moodledata - recursively.

Upgrading ... depending upon how hosted and how you did the upgrade could have changed ...

You might share how you upgraded .... your steps ... in comparison  to the offical Moodle docs on upgrading:

https://docs.moodle.org/39/en/Upgrading

'SoS', Ken

Re: Error after Install and Configure Moodle (Moodle Not running)

Re: Can not read file, either file does not exist or there are permission problems error

$
0
0
by Luis de Vasconcelos.  

+ 1 for the check ownerships/permissions on moodledata - recursively advice! smile I forgot about that!

Re: Error after Install and Configure Moodle (Moodle Not running)

Re: Error after Install and Configure Moodle (Moodle Not running)

$
0
0
by Steve Henry.  

Hy Luis
Thanks for your answer
I've resart my computer after installing xampp package
everything looks well when I finish the installation (xampp, and also moodle), and my operating system is WINDOWS 10
I've try again but it still won't work
is there any suggetion for me ?

Thank You
Regards,
Steve Henry

Re: Icons and videos are broken after migrating Moodle to a new server.

$
0
0
by Visvanath Ratnaweera.  

> Unfortunately, this didn't help.

Thas is not helpful. What did you do exactly? What was the result?

> I have to change the Joomla site to WordPress site but keep the Moodle site inside.

How was it done earlier?

> "moodle" folder sits inside "[example.com]" folder. https://[example.com]/moodle/

That is a possible solution. Did you read https://docs.moodle.org/en/Moodle_migration carefully, for example https://docs.moodle.org/en/Moodle_migration#Update_config.php_with_the_URL_of_the_new_server ?

Re: Icons and videos are broken after migrating Moodle to a new server.

$
0
0
by Helen Foster.  

Thanks Visvanath, moving this discussion to the Installing and upgrading forum as suggested, so no need for you to re-post Yaroslav.

Re: Icons and videos are broken after migrating Moodle to a new server.

$
0
0
by Ярослав Яковенко.  

I've just tried again. I've done everything accordingly to this instruction (this time I've created a separate DB for _mdl tables):

https://docs.moodle.org/en/Moodle_migration


I've updated config.php file with new DB login credentials and changed this:

$CFG->wwwroot   = 'https://tuprofe.com.ua/moodle';

$CFG->dataroot  = '/var/www/tuprofe/moodledata';

$CFG->admin     = 'admin';

to this:

$CFG->wwwroot   = 'http://wordpress-391374-1536250.cloudwaysapps.com/moodle';

$CFG->dataroot  = '/home/master/applications/kvrtyddyhk/private_html/moodledata';

$CFG->admin     = 'admin';


Then I used Search and replace tool and changed 

https://tuprofe.com.ua/ 

to 

http://wordpress-391374-1536250.cloudwaysapps.com/


Still have the same issues:

https://ibb.co/dJKMcqh



events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

$
0
0
by Syed Ali.  

Upgraded from 3.5 to 3.9.

Now getting following error.

Coding error detected, it must be fixed by a programmer: events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

Re: events_trigger_legacy() has been deprecated along with all Events 1 API in favour of Events 2 API.

$
0
0
by Ken Task.  

Mind describing how you are upgrading?

Are you following:

https://docs.moodle.org/39/en/Upgrading

If not a 3rd party plugin issue, 'has been depreciated' sometimes happens when one is trying to upgrade by overwriting core code rather than following the upgrade doc.

Also ... did you research all 3rd party plugins ... not core code ... to see if they have a compatible 3.9.x version before you attempt upgrading?

'SoS', Ken



Moodle Messages problem after upgrading to 3.9

$
0
0
by Florian Bachofner-Mayr.  

Dear community,

we've upgraded our Moodle installation from 3.8 to 3.9 last night. Everything worked fine at the first sight (although the process of upgrading needed an experienced system administrator...), but we're experiencing massive problems with the built in messaging system as well with mobile push notifications since the upgrade:

  • When sending a message via browser I get the following error message as a popup:
    "Cannot read property 'lastmessagedate' of undefined"
  • Additionally I get the following error message as a second popup:
    Syntax error, unrecognized expression: (with the whole text of the message following)
  • Also, I get the following error message in my message stream:
    Error: Call to a member function force_process_messages() on null

We've figured out that messages are sent and also received, but the errors make the built in messenger tool not useable any more. Additionally, no push notifications are sent to any user (although we have an active premium plan).

You can find some screenshots attached. We hope for quick replies – thx in advance!

Re: Icons and videos are broken after migrating Moodle to a new server.

$
0
0
by Visvanath Ratnaweera.  

Everything looks good this time. Could you get the URL of the broken picture (in the HTML source view) and post here? Also try Site administration > Development > Purge all caches. Sometihmes even purging the browser cache helps. You must have tried other browsers and other devices. Also try chaning Site administration > Server> HTTP - Use slash arguments.

Re: Icons and videos are broken after migrating Moodle to a new server.

$
0
0
by Ярослав Яковенко.  

I've just noticed that some menu elements don't work.
https://ibb.co/KsSLBHw

Here is the link to the broken image:

And the screenshot of the Console:
https://ibb.co/d4T2wBX

"Also try Site administration > Development > Purge all caches. Sometihmes even purging the browser cache helps. You must have tried other browsers and other devices. Also try chaning Site administration > Server> HTTP - Use slash arguments." - I've tried these but nothing helped sad

Re: Icons and videos are broken after migrating Moodle to a new server.

Re: Icons and videos are broken after migrating Moodle to a new server.

$
0
0
by Visvanath Ratnaweera.  

If those 404 errors correspond to images, the web server can't access them in ./moodledata/filedir. Check file permissions.
Viewing all 47048 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>