*I originally posted this in the 'upgrading forum' and I guess it was the wrong place since I haven't received any responses.

Several days ago I did updates a few days ago to some modules, I'm not sure if this has anything to do with that, but when trying to look through "recent log entries" under Administer, a huge red box appears with these warnings. Recent log entries isn't as elaborate as it was before these warnings. Can anyone help me to figure out what is the issue and how I can resolve it please?

warning: Invalid argument supplied for foreach() in /home/xxx/includes/common.inc on line 789.
warning: strtr() [function.strtr]: The second argument is not an array in /home/xxx/public_html/includes/common.inc on line 806.
warning: Invalid argument supplied for foreach() in /home/xxx/public_html/includes/common.inc on line 789.

When searching through issues, I was able to locate the folder through FTP, and this is what I saw in 'common.inc' folder when I clicked to view it (I have no clue what it is or means):

789. foreach ($args as $key => $value) {

806. return strtr($string, $args);

Next, when looking at the status report after updating those modules to see if everything installed correctly, there was a yellow box with this message

"Upload progress Not enabled
Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (prefered) or to install APC. "

This is the clickable link website that is listed next to "(prefered)" http://pecl.php.net/package/uploadprogress.

I really have no clue as to what it is and how to do it, or where to install this, could I please get assistance in this as well. Any help is appreciated, I'm really still learning Drupal, I feel a bit frustrated but it would be of great assistance if anyone with the knowledge can help me with these issues please? Thanks.

Comments

Angelita’s picture

Can anyone can help me with the first issue please?

dag-’s picture

This project is about the Warning module for Drupal. Your problem is not related to the Warning module.

Could you please change the Project into Drupal and provide the Version and Component information ?

Thanks.

Angelita’s picture

Project: Warning » Drupal core
Version: 6.x-1.x-dev » 6.6
Component: Code » other
Angelita’s picture

Im sorry, I had no clue where the post would go, still learning a lot, thanks:)

Can anyone assist me in this issue please?

Angelita’s picture

Still having this issue, I'm not able to view Recent Log Entries as I were before. Could anyone offer any assistance?

Angelita’s picture

Version: 6.6 » 6.13

*I posted this a year ago and still have the same issue*

I apologize if this is in the wrong area, I'm not sure where it goes. Can anyone help with this issue I've been encountering, I'm unable to view "Recent Log Entries:" and always get the follow warnings:

# warning: Invalid argument supplied for foreach() in /home/xx/public_html/includes/common.inc on line 884.

# warning: strtr() [function.strtr]: The second argument is not an array in /home/xx/public_html/includes/common.inc on line 901.

When I opened the file in an editor, this is what both lines show:

line 884: foreach ($args as $key => $value) {

line 901: return strtr($string, $args);

Any clue to what I should do so that I can view my log entries? Thanks in advance.

Angelita’s picture

Title: warning: Invalid argument supplied for foreach() in /home/xxx/public_html/includes/common.inc on line 789. » # warning: Invalid argument supplied for foreach()
kars-t’s picture

Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.