admin users page get time out

  • Denis Jacquest
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 5 months ago - 12 years 5 months ago #1 by Denis Jacquest
admin users page get time out was created by Denis Jacquest
Hello,

after my host was hacked (!) I'm trying to rebuild everything.
Joomla 2.5.6 moodle 2.5.2 joomdle 0.93 php 5.3.27 jomsocial 3.0 RC2

everything work just fine beetwen joomla and moodle,
everything is green in the check page
I'm able to navigate between the two sites

but when I try to call the joomdle users page in admin I get a time out (with a 500 error).
index.php?option=com_joomdle&view=users

I can see the joomla and jomsocial admin users page without problem

I try to increase the php memory_limit to 256M and max_execution_time 600 or more without any result

edit : I've changed the connexion method to curl and I finally was able to get the user page.
when I try to sync joomla profile I get this nice error

Fatal error: Call to a member function enqueueMessage() on a non-object in /home/mysite/public_html/joodle/administrator/components/com_joomdle/helpers/mappings.php on line 1320

I'm (still) stuck with this, any help or ideas would be very appreciate
thanks in advance
regards
Last edit: 12 years 5 months ago by Denis Jacquest. Reason: work in progress

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #2 by Fernando Acedo
Replied by Fernando Acedo on topic admin users page get time out
Take a look to the error.log and you probably will see the origin of the 500 error.

Can you access the moodle site (directly) without time out?

Try to update Joomlato the latest version as soon as possible to avoid more attacks.

Please Log in or Create an account to join the conversation.

  • Denis Jacquest
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 5 months ago #3 by Denis Jacquest
Replied by Denis Jacquest on topic admin users page get time out
hello,
thanks for your answer

I'm on Cpanel, the error log doesn't show everything there

and yes joomla is now up to date (btw the hoster was hacked, not directly my sites but I still loose all the database in the hack).

yes the sites are running well, no time out except for this function
Fatal error: Call to a member function enqueueMessage() on a non-object in /home/mysite/public_html/joodle/administrator/components/com_joomdle/helpers/mappings.php on line 1320

the time out is resolved, it's a sync joomla's profiles problem now. It happend when I try to sync a joomla profile with moodle in the joomdle users page.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago - 12 years 5 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic admin users page get time out
Hi there.

Sorry for thw slow reply, been quite busy lately...

I checked the code, and the error you report is caused by some code I left when copying from Jomsocial.
When a pic resize fails, it tries to give an warning. That try is what gives a fatal error, as it tries to use an undefined variable.

To remove the fatal error, you can edit administrator/components/com_joomdle/helpers/mappings.php, function save_avatar_jomsocial, and change:
Code:
if( !CImageHelper::resizeProportional( $tmp_file , $storageImage , $type , $imageMaxWidth ) ) //Moodle always stores png in 2.0? XXX { $mainframe->enqueueMessage(JText::sprintf('CC ERROR MOVING UPLOADED FILE' , $storageImage), 'error'); if(isset($url)){ $mainframe->redirect($url); } }

By:
Code:
CImageHelper::resizeProportional( $tmp_file , $storageImage , $type , $imageMaxWidth );

And:
Code:
if(!CImageHelper::createThumb( $tmp_file , $storageThumbnail , $type )) //Moodle always stores png { $mainframe->enqueueMessage(JText::sprintf('CC ERROR MOVING UPLOADED FILE' , $storageThumbnail), 'error'); if(isset($url)){ $mainframe->redirect($url); } }

By:
Code:
CImageHelper::createThumb( $tmp_file , $storageThumbnail , $type );

This should remove the fatal error, although the original problem (resize failing) will persist. I don't know why that is coming up, as I never saw it before.
Last edit: 12 years 5 months ago by Antonio Durán.

Please Log in or Create an account to join the conversation.