News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Portal Management PortaMx v1.54 ecl for SMF 2 (updated)

Started by feline, October 07, 2008, 07:23:31 PM

Previous topic - Next topic

dlibson

Getting these errors when looking to install. Any thoughts?

   1.     Execute Code     dbinstall.php     
*    2.    Execute Modification    ./index.php    Test failed   ***
      1.    Add After    ./index.php    Test successful
      2.    Add Before    ./index.php    Test failed   ***
      3.    Replace    ./index.php    Test successful
      4.    Replace    ./index.php    Test successful
      5.    Add Before    ./index.php    Test successful
*    3.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    4.    Execute Modification    ./Sources/Admin.php    Test failed   ***
      1.    Add Before    ./Sources/Admin.php    Test failed   ***
Come visit the best Sports/General Chat site on the web!

http://www.ngsforums.com">

BRiNGiTT

Simple....Just...Install the mod manually..o the failed php files.it helped me a lot....to solve most of my site problems...
I dnt see what has been done; I only see what remains to be done

feline

Quote from: dlibson on September 17, 2010, 11:05:27 PM
Getting these errors when looking to install. Any thoughts?
Try the Package parser on our site .. then you can modify the failed parts manually.

Fel

FireDitto

#403
Hey,

I made a block, and I was attempting to put code in it, to fetch a drop-down menu for the Sub Accounts Mod.

Apparently, I failed miserably, and didn't close the code somewhere.

It's eaten all of my forum from the block down, on all accounts that have that block visible...

And all of those accounts were administrative...

And because of this, I cannot get in to the administration section to fix the error.

I have *no* idea how to fix it.


And I haven't made a back up recently; I need to get rid of this error, preferably without removing or destroying the posts that have been made on the forum. I don't care about anything else, but I need to save the posts.

Is this possible?!

Please, please help!!


Issue cleared on the PortaMx website.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

anidea

Hi Fel,

The portal was working great, until we had to ban a few members and then hide the whole forum from guests.

Since I changed the permissions for guests to no longer see any part of the forum but the front page, I've been getting a ton of the following types of errors.

I'm guessing that there's a permission that I need to set inside PortaMx?  But I can't find it.  If you, or someone else, could point me in the right direction, I would really appreciate it.

http://www.mysite.org/smf/index.php?action=dlattach;attach=17;type=avatar8:
Undefined index: pmx_admincenter
File: /f5/mysite/public/smf/Sources/Subs.php
Line: 4022
Line: 4064
Line: 4020
Line: 4013
Line: 4012

http://www.mysite.org/smf/index.php?action=dlattach;attach=108;type=avatar8:
Undefined index: PortaMx
File: /f5/mysite/public/smf/Sources/Subs.php
Line: 4297
Line: 4064 etc

feline

That is a known bug in the current release and will be fixed in the next update.
See also http://portamx.com/issue,36.0/

Fel

csneon2000

#406
I'm trying to use the XML file that TWL provides us to use for my clans stats, but when i use the php option in portamx i get this error.

Parse error: syntax error, unexpected '<' in /usr/www/t3dark/public/Sources/PortaMx/Class/php.php(70) : eval()'d code on line 1

Here's the code i use
/************************************************************************/ <br />
/*  TeamWarfare Standings-XML reader for PHPNUKE 6.0                    */ <br />
/* =================================================                    */ <br />
/*                                                                      */ <br />
/* Copyright (c) 2003                                                   */ <br />
/* <a target="TWLOutput" href="http://phpnuke.org/">http://phpnuke.org</a>                            */ <br />
/*                                    */ <br />
/* Version 1, modified by BurZurk                                       */ <br />
/* <a target="TWLOutput" href="http://www.nomercygiven.com/">http://www.nomercygiven.com</a>                                          */ <br />
/*     Props to: Rodimus for the XMP parser   (www.82nd.net)            */ <br />
/*            Humpa for the block/phpnuke help  (www.nukeforums.com)    */ <br />
/*                                                    */ <br />
/* Last Edited - 18 March 2003                                 */ <br />
/*                                                    */ <br />
/* This Block shows the TeamWarfare standings for all ladders of a      */ <br />
/* given team from <a target="TWLOutput" href="http://www.teamwarfare.com/">http://www.teamwarfare.com</a>   Laddername, rung #, W/L/T info */                   /*                                                         */ <br />
/* 1-  goto your team page, under your profile find "xml version"    */ <br />
/*     copy this link and paste below where indicated                */ <br />
/* 2-  save and upload the block to your "blocks" directory            */ <br />
/* 3-  In php admin section "blocks" enable "block-ladderinfo"          */ <br />
/*     be sure to call it "TWL Ladders" or whatever you want to appear  */ <br />
/*     at the head of the block                                         */ <br />
/* 4-  Done <img src="http://www.teamwarfare.com/forums/smilies/wink.gif" alt="" />                                */ <br />
/* This program is free <a class="iAs" style="font-weight: normal ! important; font-size: 100% ! important; text-decoration: underline ! important; border-bottom: 0.075em solid rgb(255, 209, 66) ! important; padding-bottom: 1px ! important; color: rgb(255, 209, 66) ! important; background-color: transparent ! important; background-image: none; padding-top: 0pt; padding-right: 0pt; padding-left: 0pt;" href="http://www.teamwarfare.com/forums/showthread.asp?forumid=19&threadid=140710#" target="_blank">software</a>. You can redistribute it and/or modify */ <br />
/* it under the terms of the GNU General Public License as published by */ <br />
/* the Free Software Foundation; either version 2 of the License.       */ <br />
/************************************************************************/ <br />
<br />
<br />
if (eregi("block-ladderinfo.php", $PHP_SELF)) { <br />
Header("Location: index.php"); <br />
die(); <br />
} <br />
ob_start(); <br />
$insideitem = false; <br />
$tag = ""; <br />
$twf_rank = ""; <br />
$twf_wins = ""; <br />
$twf_losses = ""; <br />
$twf_forfeits = ""; <br />
$twf_status = ""; <br />
$search = "America's Army "; <br />
$replace = "a"; <br />
function startElement($parser, $tagName, $attrs) {     <br />
global $insideitem,$tag, $twf_status; <br />
<br />
<br />
if ($insideitem) { <br />
$tag = $tagName; <br />
}  <br />
elseif ($tagName == "LADDER") { <br />
while (list ($key, $val) = each ($attrs)) { <br />
if ($key == "NAME") <br />
print ""; <br />
print ""; <br />
} <br />
$insideitem = true;     <br />
} <br />
<br />
} <br />
function characterData($parser, $data) {     <br />
global $insideitem, $tag, $twf_rank, $twf_wins, $twf_losses, $twf_forfeits; <br />
if ($insideitem) { <br />
<br />
switch ($tag) {                    <br />
case "RANK":    $twf_rank = $data; $tag = "";break;              <br />
case "<a class="iAs" style="font-weight: normal ! important; font-size: 100% ! important; text-decoration: underline ! important; border-bottom: 0.075em solid rgb(255, 209, 66) ! important; padding-bottom: 1px ! important; color: rgb(255, 209, 66) ! important; background-color: transparent ! important; background-image: none; padding-top: 0pt; padding-right: 0pt; padding-left: 0pt;" href="http://www.teamwarfare.com/forums/showthread.asp?forumid=19&threadid=140710#" target="_blank">WINS</a>":        $twf_wins = $data; $tag = "";break;    <br />
case "LOSSES":    $twf_losses = $data; $tag = "";break;                <br />
case "FORFEITS":    $twf_forfeits = $data; $tag = "";$insideitem = false; break;           <br />
}     <br />
<br />
} <br />
<br />
} <br />
<br />
<br />
function endElement($parser, $tagName) {     <br />
global $insideitem, $tag, $twf_rank, $twf_wins, $twf_losses, $twf_forfeits, $twf_status; <br />
if ($tagName == "LADDER") { <br />
print ""; <br />
print ""; <br />
print ""; <br />
print ""; <br />
print "
<table cellspacing="\"0\"" cellpadding="\"0\"" align="\"center\"">
<tbody>
  <tr>
   <td colspan="\"2\""><u><b>"; <br />
   echo str_replace("America's Army", "", $val); <br />
   print "</b></u><br />
   </td>
  </tr>
  <tr>
   <td valign="\"middle\"">Rank:</td>
   <td valign="\"middle\""><strong>#$twf_rank<br />
   </strong></td>
  </tr>
  <tr>
   <td valign="\"middle\"">Wins:</td>
   <td valign="\"middle\""><strong>$twf_wins<br />
   </strong></td>
  </tr>
  <tr>
   <td valign="\"middle\"">Losses:</td>
   <td valign="\"middle\""><strong>$twf_losses<br />
   </strong></td>
  </tr>
  <tr>
   <td valign="\"middle\"">Forfeits:</td>
   <td valign="\"middle\""><strong>$twf_forfeits<br />
   </strong></td>
  </tr>
</tbody>
</table>
<br />
"; <br />
<br />
} <br />
//$temp = true; <br />
//$tagName = ''; <br />
} <br />
<br />
// Create an XML parser <br />
$xml_parser = xml_parser_create(); <br />
<br />
// Set the functions to handle opening and closing tags <br />
xml_set_element_handler($xml_parser, "startElement", "endElement"); <br />
<br />
// Set the function to handle blocks of character data <br />
xml_set_character_data_handler($xml_parser, "characterData"); <br />
<br />
<br />
// print "<hr />
\n"; <br />
print "\n"; <br />
print ""; <br />
print "
<table cellspacing="\"0\"" cellpadding="\"2\"" border="\"1\"" width="\"100%\"">
<tbody>
  <tr>
   <td align="\"center\"" width="\"100%\"" valign="\"top\"">\n"; <br />
   <br />
   // Open the XML file for reading- PASTE YOUR LINK BELOW. <br />
   $fp = fopen("http://www.teamwarfare.com/xml/viewteam_v2.asp?team=No+Mercy+Given","r")  or die("Error reading RSS data."); <br />
   <br />
   // Read the XML file 4KB at a time <br />
   while ($data = fread($fp, 4096))     <br />
   // Parse each 4KB chunk with the XML parser created above <br />
   xml_parse($xml_parser, $data, feof($fp))  <br />
   or die(sprintf("XML error: %s at line %d", <br />
   xml_error_string(xml_get_error_code($xml_parser)), <br />
   xml_get_current_line_number($xml_parser))); <br />
   // Close the XML filef <br />
   fclose($fp); <br />
   <br />
   // Free up memory used by the XML parser <br />
   xml_parser_free($xml_parser); <br />
   <br />
   <br />
   print "</td>
  </tr>
</tbody>
</table>
<br />
"; <br />
// end of file <br />
$output = ob_get_contents(); <br />
ob_end_clean(); <br />
$content = $output; <br />
?>



Thanks


-edit by admin - please post mod specific questions in the support thread for that mod.   *moved*

Spoogs

remove the "?>" in the last line and see if that works for ya

feline

That is not php code ...
Remove all the html element (mostly <br />) the are out side a echo '...'; or print '...' function.

Fel

csneon2000

now i get this error

Parse error: syntax error, unexpected T_STRING in /usr/www/t3dark/public/Sources/PortaMx/Class/php.php(70) : eval()'d code on line 67

feline

I think, you have to learn to write php code  ;)
ALL html code MUST output withe the echo command like:

echo '<div>';

Look at the template files the delivered with smf or portamx. Also look at the php block samples on our support site.

Fel

Kindred

yoi have extra <br> at the end of nearly every line (where they do not belong)

basically, that code is junk. It's not valid HTML, it's not valid php.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

csneon2000


feline

from where you get this code ? Link available?

Fel

csneon2000

hxxp:www.teamwarfare.com/forums/showthread.asp?forumid=19&threadid=140710 [nonactive]

feline

That is not clean php code. call the author to get clean php code from him.

Fel

feline

The PortaMx corp. proudly presence the Portal Management Extension release 0.990 for SMF 2.0 RC4

In this version we have fixed all known bugs and added new features (see the issues on the  Bugtracker).

Fel

snipes1031

I need a lil bit of help. My friend uses this mod and his site looks great! but I cant get it working with mine  >:( When ive installed it and I get the redirect, i get this---v       And I get it whenever I visit my forum. Forum version: 2.0RC4 can anyone help me?

Strict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/boblacko/public_html/forum/index.php on line 68

Warning: require_once(/home/boblacko/public_html/forum/Sources/PortaMx/PortaMx.php) [function.require-once]: failed to open stream: Not a directory in /home/boblacko/public_html/forum/index.php on line 68

Strict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/boblacko/public_html/forum/index.php on line 68

Fatal error: require_once() [function.require]: Failed opening required '/home/boblacko/public_html/forum/Sources/PortaMx/PortaMx.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/boblacko/public_html/forum/index.php on line 68

feline

I think, the installation fails, so you have to look with ftp on your server, if all files the the right place.
Fel


Advertisement: