- Posts: 67
[Closed] can't open joomdlehooks.php after moving site
- David Parker
- Topic Author
- Offline
- Senior Member
-
Less
More
14 years 1 month ago - 14 years 1 month ago #1
by David Parker
[Closed] can't open joomdlehooks.php after moving site was created by David Parker
Hi and thanks for Joomdle,
I recently changed my host provider and moved my joomla1.5 and moodle2.0.
Problem occurs when logging in. I get this error:
Warning: fopen(..../public_html/mysite.com/lessons/tmp/TVhBlYIl.txt) [function.fopen]: failed to open stream: No such file or directory in /.../public_html/lessons/plugins/user/joomdlehooks.php on line 179
I've checked and the file is there. Maybe corrupt? Should I try reinstall?
Both Joomla! and Moodle sites are working fine independently. Thanks, David
I recently changed my host provider and moved my joomla1.5 and moodle2.0.
Problem occurs when logging in. I get this error:
Warning: fopen(..../public_html/mysite.com/lessons/tmp/TVhBlYIl.txt) [function.fopen]: failed to open stream: No such file or directory in /.../public_html/lessons/plugins/user/joomdlehooks.php on line 179
I've checked and the file is there. Maybe corrupt? Should I try reinstall?
Both Joomla! and Moodle sites are working fine independently. Thanks, David
Last edit: 14 years 1 month ago by Chris.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
14 years 1 month ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: can't open joomdlehooks.php after moving site
Hi.
Not sure why you get that.
You can disable redirect-less SSO if possible, as the error is on the redirect-less function.
Not sure why you get that.
You can disable redirect-less SSO if possible, as the error is on the redirect-less function.
Please Log in or Create an account to join the conversation.
- David Parker
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
14 years 1 month ago #3
by David Parker
Replied by David Parker on topic Re: can't open joomdlehooks.php after moving site
Thanks for your response Antonio,
I turned off Joomdlehooks.php and everythings seems to be working okay.
Also,
Under Health Check, I have:
PHP error reporting: E_DEPRECATED errors are enabled in your PHP configuration
I've checked the php.ini and e_depreicated is set to off.
What do you suggest? thanks
I turned off Joomdlehooks.php and everythings seems to be working okay.
Also,
Under Health Check, I have:
PHP error reporting: E_DEPRECATED errors are enabled in your PHP configuration
I've checked the php.ini and e_depreicated is set to off.
What do you suggest? thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
14 years 1 month ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: can't open joomdlehooks.php after moving site
If everything else is green in system check, you can ignore this error as a false positive.
Please Log in or Create an account to join the conversation.
- David Parker
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
14 years 1 month ago - 14 years 1 month ago #5
by David Parker
Replied by David Parker on topic Re: can't open joomdlehooks.php after moving site
Thanks Antonio!
Last edit: 14 years 1 month ago by David Parker.
Please Log in or Create an account to join the conversation.
- david acton
- Offline
- New Member
-
Less
More
- Posts: 12
14 years 1 month ago #6
by david acton
Replied by david acton on topic Re: can't open joomdlehooks.php after moving site
Hi Guys. I had the same issue and cured it by disabling the redirectless SSO option. However, I now want to use silent registration in Virtuemart, which requires SSO to be enabled. This brings back the error. Interestingly this does not occur on a local development copy of the site so I assume there is a setting somewhere that is configured during the installation which requires changing for the "Live" version.
Can anyone tell me what it is please?
I am using Joomla 1.5.25, VM 1.1.9 and Moodle 2.0.2
Can anyone tell me what it is please?
I am using Joomla 1.5.25, VM 1.1.9 and Moodle 2.0.2
Please Log in or Create an account to join the conversation.
- David Parker
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
14 years 1 month ago - 14 years 1 month ago #7
by David Parker
Replied by David Parker on topic Re: can't open joomdlehooks.php after moving site
I was able to switch back to SSO=ON by resetting the Token.
Not sure why, but the Token in Moodle broke after moving my site. You need to check your Token in moodle GO:
Administrator > Plugins > Web Services > Manage Tokens
Check that your Token does not have any issues, like missing permissions (these appear in red).
If you have missing permissions, you need to check the permissions assigned to the user you created to manage Joomdle. I had to reassign the permissons. That fixed the Token issue.
I also, reinstalled Joomdle in Joomla!, just for good meausre.
That allowed me to go back to SSO = ON
Good luck with it. D.
Not sure why, but the Token in Moodle broke after moving my site. You need to check your Token in moodle GO:
Administrator > Plugins > Web Services > Manage Tokens
Check that your Token does not have any issues, like missing permissions (these appear in red).
If you have missing permissions, you need to check the permissions assigned to the user you created to manage Joomdle. I had to reassign the permissons. That fixed the Token issue.
I also, reinstalled Joomdle in Joomla!, just for good meausre.
That allowed me to go back to SSO = ON
Good luck with it. D.
Last edit: 14 years 1 month ago by David Parker.
Please Log in or Create an account to join the conversation.
- david acton
- Offline
- New Member
-
Less
More
- Posts: 12
14 years 1 month ago #8
by david acton
Replied by david acton on topic Re: can't open joomdlehooks.php after moving site
Hi David. Thank you for your post. Coincidentally we cracked it whilst you were posting 
It turned out that the system was looking for a folder called tmp in the site root that did not exist. (Note to self here READ THE ERROR LOGS!)
Once I created the folder the system worked with Joomla set to no authentication required.
Cheers
David
It turned out that the system was looking for a folder called tmp in the site root that did not exist. (Note to self here READ THE ERROR LOGS!)
Once I created the folder the system worked with Joomla set to no authentication required.
Cheers
David
Please Log in or Create an account to join the conversation.
- David Parker
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
14 years 1 month ago - 14 years 1 month ago #9
by David Parker
Replied by David Parker on topic Re: can't open joomdlehooks.php after moving site
After a little more research and rooting around, this problem may be the result of moving your site (or directories) and not updating the configuration.php file. The lines that must be updated are:
var $log_path = '/home/your_home/public_html/lyour_directory/logs';
var $tmp_path = '/home/your_home/public_html/lyour_directory/tmp';
You can also check that these directories are writable in Joomla:
Help > System Info > Directory Permissions
Check that:
Log Directory ($log_path)
Temp Directory ($tmp_path)
are writable
Good Luck all....
var $log_path = '/home/your_home/public_html/lyour_directory/logs';
var $tmp_path = '/home/your_home/public_html/lyour_directory/tmp';
You can also check that these directories are writable in Joomla:
Help > System Info > Directory Permissions
Check that:
Log Directory ($log_path)
Temp Directory ($tmp_path)
are writable
Good Luck all....
Last edit: 14 years 1 month ago by David Parker.
Please Log in or Create an account to join the conversation.