Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Error after installation of strawberry when trying to login

 
Reply to topic    Forum Index » Strawberry Support View previous topic
View next topic
Error after installation of strawberry when trying to login
Author Message
jfade



Joined: 27 Dec 2005
Posts: 3

Post Error after installation of strawberry when trying to login Reply with quote
Hi! Smile First off, thanks for such a great script, I've been using CuteNews.RU for a long time now and I love it. Very Happy



Here's my problem, after installing (which worked well) I try to login with the username and password I specified, and it comes up with this at the top:



Warning: Invalid argument supplied for foreach() in /(full path here)/news/inc/functions.inc.php on line 94



Any ideas what it means? I know that mySQL DB, user, and such are all correct, so I'm not sure what the problem is...



Thanks in advance! Smile
Mon Jul 31, 2006 7:56 pm View user's profile Send private message
Guest








Please login to hide the ads.

jfade



Joined: 27 Dec 2005
Posts: 3

Post Reply with quote
OK, nevermind, I figured that out. Smile I had done something stupid, which is not unusual. Razz



New problem:





Code:
<?php

   if ($HTTP_GET_VARS["category"]) {

      $category = $HTTP_GET_VARS["category"];

   } else {

      $category = '3';

   }

   if ($HTTP_GET_VARS["id"]) {

      $id = $HTTP_GET_VARS["id"];

   } else {

      $id = '0';

   }

   if ($category == '3' && $id == '0') {

   $template = "Front";

   } else {

      if ($category == '24' && $id == '0') {

      $template= "Front";

      } else {

      $template = "NewTemp";

      }

   }

   $number = 10;

   include rootpath.'/show_news.php';

}

?>


That doesn't seem to work for me at all anymore, but it did in CuteNews.RU 2.5.4. It display back any news at all. It does include the head.php file at the top of the page, like so:



Code:
<?php

include './news/head.php';

?>




So I'm not sure why it's not working. Sad Any ideas? Thanks in advance, again! Very Happy
Mon Jul 31, 2006 8:44 pm View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 172

Post Reply with quote
What are you trying to achieve with the new problem? (I don't really understand it, since I'm not a PHP-programmer, altough I understand parts of it.)
Fri Aug 04, 2006 9:59 am View user's profile Send private message
dpe



Joined: 10 Sep 2006
Posts: 1
Location: Switzerland

Post Reply with quote
Hello,

I get the same error message on login after a new install of Strawberry 1.1.1

Quote:
Warning: Invalid argument supplied for foreach() in /(full path here)/news/inc/functions.inc.php on line 94




I installed Strawberry without any problem (no error message)



It seems that the user specified during the install hasn’t been created: MySql table ‘cute_users’ is empty

I tried to install Strawberry on another computer, and I had no problem, the user was correctly created in the table



DPE
Tue Sep 12, 2006 9:20 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
You could try again.



Or you could manually create the user in the table using the data from your working installation.
Wed Sep 13, 2006 11:24 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Strawberry Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.