Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

page refresh rather than follow link - admin side


9 replies to this topic

#1 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 18 July 2011, 16:49

I am in process of moving an existing 2.2rc2a store from a php3/mysql3 server to a php5/mysql5 server, and as anticipated I am having some issues to sort out. I've solved most issues but have one remaining problem that has me stumped.

In admin, when entering tools-> info_manager and/or tools->zzfaq_manager (these two contributions seem to use very similar code), I am able to enter the page, but when clicking on any link, such as create new, or edit existing, etc… the page just refreshes.

The links in catalog, modules, customers, etc, all work just perfectly. It is only these two similarly coded add-ons giving me grief.

I am my own host, so have full access to anything that might be helpful… logs, cfg’s etc…

Could anyone give me a point in the right direction. I am kind of stumped. Where should I start?

Thank you
Dave
-Dave

#2 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 19 July 2011, 17:34

So 'Im still trying to sort this out
I have three addons not working and I have been looking for a common thread
info-manager (admin side)
faq-manager (admin side)
imagemagic (catalog side)

Would I be on the right track with "register_long_arrays" being off on the server as the possible root cause?

If true, does anyone have a link to a good tutorial on changing long arrays... I'd rather fix the code than change the php.ini.
if not, any thoughts appreciated.

Dave
-Dave

#3 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 20 July 2011, 13:39

Is there a better forum category to post this too? just looking for a little guidance here.
-Dave

#4 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 July 2011, 18:21

You want to change hundreds of lines of code to avoid changing one line in your php.ini? So, next you're going to invent the triangular wheel....

I think you're off track anyway. osCommerce uses long arrays in the core code, so nothing would work if that were the case. There's a compatibility function that deals with this, but again, it would be needed for the core code as well. If you really want to test this, just go change that line in your php.ini. You can always change it back if it doesn't help.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#5 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 20 July 2011, 18:46

Thanks for the reply Jim. I'll test. Its just that their are other sites hosted on this server and I do not want to cause them any grief messing with php.ini. If I understand, for 2.2rc2a on php5 register long arrays should be off in php.ini.
After reading around, I believe I can test as suggested using the <virtualHost> settings and/or .htaccess. Please correct me if I am wrong.

for .htacess something like

<IfModule mod_php5.c>
php_flag register_long_arrays On
</IfModule>

or

php_value register_long_arrays on

Is this method viable? is one sysntax preferred?
I'm not sure how I would do it in virtualhost.

All that aside, would you have any idea then what could be the basic issue with the non working (admin side) links with those two modules: IPU 1.3a, and faq manager?
-Dave

#6 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 July 2011, 19:55

I believe that either of those should work in your .htaccess. The sources I have seen recommend
php_flag register_long_arrays on 

I have never used IPU so I have no idea. I'm using FAQ Manager on a site running under PHP 5.3.6 and it works just fine. Caveats: Mine may be a newer version, or I may have fixed the problem when I modified the code to change the display format. Are you using the latest versions of each? And how old are those versions?

Have you looked at your server error logs? A good error message would help a lot.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#7 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 21 July 2011, 20:15

Jim you are right re long_arrays on, made no differnces.

When clicking around FAQ manager, the apache log shows:

[Thu Jul 21 13:26:21 2011] [error] [client 209.xxx.xxx.xx] File does not exist: /var/www/xxx/catalog, referer: http://www.xxxx.com/admin/zz_faq_manager.php
[Thu Jul 21 13:26:25 2011] [error] [client 209.xxx.xxx.xx] File does not exist: /var/www/xxx/catalog, referer: http://www.xxxx.com/admin/zz_faq_manager.php?adgrafics_faq=Added
[Thu Jul 21 13:26:29 2011] [error] [client 209.xxx.xxx.xx] File does not exist: /var/www/xxx/catalog, referer: http://www.xxxx.com/admin/zz_faq_manager.php?adgrafics_faq=Edit&faq_id=4
[Thu Jul 21 13:26:34 2011] [error] [client 209.xxx.xxx.xx] File does not exist: /var/www/xxx/catalog, referer: http://www.xxxx.com/admin/zz_faq_manager.php?adgrafics_faq=Visible&faq_id=1&visible=0

which is weird. The files do exist, although in /var/www/xxx/admin/ <files> with permissions and owner/group same as all the other files. Does the log entry tell you anything?
The version of FAQ is ancient so I'm off to update and hope it sorts. The version of IPU is the last of the 1 series, 1.3a which also has the same issue, but no apache log entries appear when clicking around. Thanks for the feedback.
-Dave

#8 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 21 July 2011, 20:46

That's odd. It looks like the filename is missing from the string it's trying to retrieve. Possibly a redirect that is not getting the filename passed properly? You would have to track down where the filename is coming from.

Regards
JIm
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#9 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 21 July 2011, 21:04

yes it seems like its calling "/catalog", rather than /admin/zz_faqmanager.php. /catalog/ does not exist, install is to var/www/xxx/<files>
-Dave

#10 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 25 July 2011, 21:20

Was just a matter of updating some ancient addons... updated to the lastest IPU and FAQDesk, working like a charm now. Thanks for the help.
-Dave