Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Redirecting error request after upgrade from 7.01.05 to 7.02.07

Asked Modified Viewed 1,860 times
M
maoriorgnz
M
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

After following the instructions as set out, I got to the replacing the content of my config file with the new code generated and uploading. When I went to run my site I got the following error

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

From reading around here I found there is an error log in the db so I accessed that and this is the only entry in it

Error Level: 8
Error Message: Undefined index: global_034
Error File: ../../../..//infusions/new_links_panel/new_links_panel.php
Error Line: 20
Error page: /weblinks.php
Error User level: 0
Error Status: 0

Here is the code for the new_links_panel.php referenced above.
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: top links.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

openside($locale['global_034']);
$result = dbquery(
   "SELECT tl.weblink_id, tl.weblink_name, tl.weblink_url, tl.weblink_count  FROM ".DB_WEBLINKS." tl
    ORDER BY tl.weblink_id DESC LIMIT 0,10"
);
if (dbrows($result)) {
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['weblink_name'], 100);
      $link_count = $data['weblink_count'];
      echo THEME_BULLET." <a href='".$data['weblink_url']."' class='side' target='_blank'>$itemsubject</a> ($link_count) <hr class=\"side-hr\">\n";
   }
} else {
   echo "<div style='text-align:center'>".$locale['global_031']."</div>\n";
}
closeside();
?>


Looking at other files I can see global numbers called, but not where they come from. I am thinking that this may be one I made myself by tweaking code :)

I can not find the file where the global numbers are defined - should I change the number or should I add it in somewhere - if so, please let me know which file :) Of course any advise and suggestions will be appreciated :)

Thank you for your time.
0 replies

2 posts

D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

In the locale files delivered with the installation, there indeed is no locale global_034.
So I think you have to add this to your site in:

Quote

http://www.yoursite.com/locale/English/global.php


(in case your site is in English)

See snippit here:

// Downloads Side panel
$locale['global_032'] = "Latest Downloads";
$locale['global_033'] = "No Downloads available";
// Welcome panel
$locale['global_035'] = "Welcome";
// Latest Active Forum Threads panel
0 replies
M
maoriorgnz
M
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
answered
Junior Member

Thank you douwe_yntema for your reply. I checked my pre upgraded and found that in the old file there is a global 34 as I have creatd a few add ins. Now I know where they are I can add them in :)
0 replies

Category Forum

Upgrading issues - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

M
M
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 12 threads in the forums
  • Started this discussions
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet