1
layla
Error message after upgrade to mx-directory
  • 2005/7/30 19:45

  • layla

  • Just popping in

  • Posts: 11

  • Since: 2005/5/22


Hi everyone
I was using xdirectory and followed the upgrade instructions for mx-directory

I was able to get the module upgraded successfully message
and can see it in admin will all my listings still there
but when in my site i go to xdirectory now i get the blank page i turned on debugging and it says:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page (followed the link its not p right now) for assistance.

Error [Xoops]: Handler does not exist
Module: xdirectory
Name: coupon in file ****\htdocs\include\functions.php line 521

ok heres what i think happened before i installed the upgrade "xdirectory" was named something else in my module list, meaning i changed it to display as something like "yellow pages" but the file name was never changed, i didnt hack it just went through admin
is this the problem, i tried changing to back to xdirectory but this didnt change anything

Thanks
Layla

2
jlm69
Re: Error message after upgrade to mx-directory
  • 2005/7/30 20:43

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


Layla,

Did you miss this part of the readme:

1b) You must make 1 manual change in line #79 of xdirectory/class/coupon.php.
CHANGE the MxdirectoryCouponClass to XdirectoryCouponClass (first letter MUST be uppercase) look for the comment directly above the line.

Also around line 63 of templates/xdir_submit.html look for these lines:

<td class="even">
<select name="city" size="1" id="city">
<option value="Florence">Florence</option>
<option value="Muscle Shoals">Muscle Shoals</option>
<option value="Sheffield">Sheffield</option>
<option value="Tuscumbia">Tuscumbia</option>
<option value="Anderson">Anderson</option>
<option value="Cherokee">Cherokee</option>
<option value="Cloverdale">Cloverdale</option>
<option value="Killen">Killen</option>
<option value="Leighton">Leighton</option>
<option value="Lexington">Lexington</option>
<option value="Red Bay">Red Bay</option>
<option value="Rogersville">Rogersville</option>
<option value="Russelville">Russelville</option>
<option value="Town Creek">Town Creek</option>
<option value="Waterloo">Waterloo</option>
</select>
<input type="text" name="state" value="AL" size="4" maxlength="10" />
zip:
<input type="text" name="zip" size="10" maxlength="30" />
</td>


And replace with these lines:


<td class="even">
<input type="text" name="city" value="" size="20" maxlength="100" /> <input type="text" name="state" value="" size="4" maxlength="10" /> <input type="text" name="zip" value="" size="10" maxlength="30" />
</td>

Update the module after changing the template file.

Hope that helps,
John

3
layla
Re: Error message after upgrade to mx-directory
  • 2005/7/30 21:13

  • layla

  • Just popping in

  • Posts: 11

  • Since: 2005/5/22


Thanks for your answer i did see that but was unsure if it applied to me,

I know how to edit and publish html for this i use frontpage and then for publishing XOOPS i am using ftp as was recommended, can i edit the php page in frontpage and then publish through ftp or should i use something different to edit?

4
jlm69
Re: Error message after upgrade to mx-directory
  • 2005/7/30 21:26

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


you could use your ftp program by right clicking on the file and click edit. You need to have set up a text editor in the options part of the ftp program. or just use notepad or wordpad to edit the file then ftp it up. I haven't used windows in a long time.

John

5
annie
Re: Error message after upgrade to mx-directory
  • 2005/8/1 23:51

  • annie

  • Just popping in

  • Posts: 87

  • Since: 2005/7/29


I followed all instructions and still got a blank page

my line 79 reads

// Change the class name below to enable custom directory (Capitolize first letter YourdirectoryCouponHandler)
class XdirectoryCouponHandler extends XoopsObjectHandler {


Note that my version says handler at the end wheres your instructions in the readme file say

CHANGE the MxdirectoryCouponClass to XdirectoryCouponClass

I tried to report it in bugs reporter but it wouldnt let me register or login

I put my site into php debug mode and got the following eror

Fatal error: Call to a member function on a non-object in /home/sites/worldwidemediums.com/public_html/modules/xdirectory/language/english/main.php on line 4

6
jlm69
Re: Error message after upgrade to mx-directory
  • 2005/8/2 15:01

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


You must be using XOOPS version 2.2, because it works fine in XOOPS 2.0.13. To fix it you just need to comment out line 4 in your language/main.php file. It must have been an oversight because I can't find the line that uses line 4 anywhere in the code. So line 4 should look like below:

//$mydirname = $xoopsModule->getVar('dirname');

or you could just delete it.

Hope that helps,

John

7
annie
Re: Error message after upgrade to mx-directory
  • 2005/8/2 15:53

  • annie

  • Just popping in

  • Posts: 87

  • Since: 2005/7/29


Thanks so much John .. will try it

Hi John

Yes 2.2

Am I right in thinking that an fresh installation of mx-directory with removal of line 4 error (as on post) AND removal of code around line 30 (as per email) will give me the directory with ALL the fields and without the coupons?

Or do I have to start with xdirectory and do the upgrades and follow instructions

Getting confused now lol

Thanks so much for your help

8
jlm69
Re: Error message after upgrade to mx-directory
  • 2005/8/2 16:14

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


Yes you are right a fresh install is fine. I think you already did that so just make the changes and everything should be fine. You will have to remove the coupon lines in other template pages, like xdir_viewcat.html, xdir_singlelink.html,
xdir_viewalpha.html.

Also to remove the add coupon link at the bottom of the listing, go to xdir_listingfull.html around line 111 and remove this part of the line:

<a href="<{$xoops_url}>/modules/<{$smartydir}>/addcoupon.php?lid=<{$link.id}>"><{$smarty.const._MD_ADDCOUPON}>
</a> |

Let me know if you have any other questions.

John

9
annie
Re: Error message after upgrade to mx-directory
  • 2005/8/2 16:38

  • annie

  • Just popping in

  • Posts: 87

  • Since: 2005/7/29


OOOOOOOOOOOOOOOO DO I LOVE YOU!!

TY TY TY TY TY KISSES KISSES KISSES

Only problems are .....

new bug: Notice [PHP]: Undefined variable: mydirname in file modules/mxdirectory/language/english/main.php line 34

(1) at top says special offers (can i get rid of it and how)

(2) at bottom of submissions page is Options: Premium listing and the list of bronze to plantinum (can i get rid of it and how)

Loads of love

Annie

10
LazyBadger
Re: Error message after upgrade to mx-directory

Quote:

new bug: Notice [PHP]: Undefined variable: mydirname in file modules/mxdirectory/language/english/main.php line 34
Notice isn't bug
Quote:

(1) at top says special offers (can i get rid of it and how)

Edit template for this page - xdir_index
Quote:

(2) at bottom of submissions page is Options: Premium listing and the list of bronze to plantinum (can i get rid of it and how)

Edit tempate for this page - xdir_submit
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

Login

Who's Online

243 user(s) are online (67 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Feb 29
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits