Guest Posted October 2, 2009 Share Posted October 2, 2009 I have just recently updated to CC ver 4.3.4 and is very happy with the added features. However, has anyone face the problem that exist in the "View Product" function when the 2nd click reports and error as follow: "Warning: main(admin/sources/products/index?_g=products/index.inc.php) [function.main]: failed to open stream: No such file or directory in /home/efabricb/public_html/admin_enc_zend.php on line 620 Fatal error: main() [function.require]: Failed opening required 'admin/sources/products/index?_g=products/index.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/efabricb/public_html/admin_enc_zend.php on line 620" I have checked if the admin_enc_zend.php file exist in my public_html directory and it did and yet the error message was reported. To be sure I am understood correctly, the first click on "View Product" in the CC Admin panel works perfectly. The error reports only at the subsequent page click. Can anyone confirm if the same problem is faced? And how to rectify this issue? Any help will be appreciated. Eddie http://efabric.biz Quote Link to comment Share on other sites More sharing options...
Guest Stellargroup Posted October 2, 2009 Share Posted October 2, 2009 I am getting the same error when I go to 2 or 3rd page of View Products , the first page seems fine. Warning: main(admin/sources/products/index?_g=products/index.inc.php) [function.main]: failed to open stream: No such file or directory in /home/content/p/e/t/........./html/cubecart/admin_enc_zend.php on line 620 Fatal error: main() [function.require]: Failed opening required 'admin/sources/products/index?_g=products/index.inc.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/p/e/t/.........../html/cubecart/admin_enc_zend.php on line 620 Any help will be greatly appreciated Stellargroup Quote Link to comment Share on other sites More sharing options...
Guest Posted October 2, 2009 Share Posted October 2, 2009 I am getting the same error when I go to 2 or 3rd page of View Products , the first page seems fine. Warning: main(admin/sources/products/index?_g=products/index.inc.php) [function.main]: failed to open stream: No such file or directory in /home/content/p/e/t/........./html/cubecart/admin_enc_zend.php on line 620 Fatal error: main() [function.require]: Failed opening required 'admin/sources/products/index?_g=products/index.inc.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/p/e/t/.........../html/cubecart/admin_enc_zend.php on line 620 Any help will be greatly appreciated Stellargroup Ok, we can now verify one thing. This is a common problem after the update to ver 4.3.4. If we can get more verifications from similar users, then we can inform CubeCart on this matter. Please, post your feedback to further verify the matter. Thanks. Eddie Quote Link to comment Share on other sites More sharing options...
Guest Stellargroup Posted October 2, 2009 Share Posted October 2, 2009 I am no longer getting the error above. When I turned off "friendly urls" in General settings in Admin and updated the error did not occur. If you say "yes" to friendly urls (SEO section) you need to install the htaccess file. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 2, 2009 Share Posted October 2, 2009 I am no longer getting the error above. When I turned off "friendly urls" in General settings in Admin and updated the error did not occur. If you say "yes" to friendly urls (SEO section) you need to install the htaccess file. I did as you have suggested and it now works perfectly. Thanks for the assistance and it is really appreciated. Quote Link to comment Share on other sites More sharing options...
Guest compusol Posted October 2, 2009 Share Posted October 2, 2009 I am also getting the same error when trying to view 2nd or subsequent product pages. This is a brand new installation, htaccess was enabled for friendly URL's. Turn off the friendly URL's feature and the product pages work correctly. Strangely enough everything was working correctly yesterday as the client added a load of new products and could access them all correctly then! Thanks Phil Quote Link to comment Share on other sites More sharing options...
Ausy Posted October 2, 2009 Share Posted October 2, 2009 See this bug report which should fix it. http://bugs.cubecart.com/view.php?id=1596 Quote Link to comment Share on other sites More sharing options...
Guest Roger Huston Posted October 7, 2009 Share Posted October 7, 2009 See this bug report which should fix it. http://bugs.cubecart.com/view.php?id=1596 Thank you, the fixed worked, however, for others it is a hack. The fix will only work with those who have SEF turned on, if you turn it off, things will be broken. The fix is to simply switch the comment below in functions.inc.php. Turn off the second line and turn on the first. # $currentPage = sanitizeVar($_SERVER['PHP_SELF']); $currentPage = ((bool)$config['sef']) ? sanitizeVar($_SERVER['REQUEST_URI']) : sanitizeVar($_SERVER['PHP_SELF']); Perhaps the better solution would be to simply switch the IF statement on the second line. If you have SEF turned on, it will use the PHP_SELF version, if SEF is off, it will use the REQUEST_URI function which I believe is the intent. ## Get current page # $currentPage = sanitizeVar($_SERVER['PHP_SELF']); $currentPage = ((bool)$config['sef']) ? sanitizeVar($_SERVER['PHP_SELF']) : sanitizeVar($_SERVER['REQUEST_URI']); This option is working for me and is perhaps a cleaner alternative than the one given in the bug. Thank you, Roger Quote Link to comment Share on other sites More sharing options...
Ausy Posted October 7, 2009 Share Posted October 7, 2009 Roger, if you have not already done so it would be worth adding your comment to the bug report so that the developers will read it. Quote Link to comment Share on other sites More sharing options...
Guest Roger Huston Posted October 8, 2009 Share Posted October 8, 2009 Roger, if you have not already done so it would be worth adding your comment to the bug report so that the developers will read it. How do I do that? Do I have to get an account for that system? Can I add it anonymously? Quote Link to comment Share on other sites More sharing options...
Ausy Posted October 8, 2009 Share Posted October 8, 2009 You have to sign up for an account. Takes a few mins http://forums.cubecart.com/index.php?showforum=49 Quote Link to comment Share on other sites More sharing options...
Guest Roger Huston Posted October 9, 2009 Share Posted October 9, 2009 You have to sign up for an account. Takes a few mins http://forums.cubecart.com/index.php?showforum=49 Thanks, I registered and tried to submit my comment, however, the bug was marked readonly and resolved, so I guess an Admin will have to see my post and evaluate it for the 4.3.5 release. - Roger Quote Link to comment Share on other sites More sharing options...
Guest Posted October 25, 2009 Share Posted October 25, 2009 I am no longer getting the error above. When I turned off "friendly urls" in General settings in Admin and updated the error did not occur. If you say "yes" to friendly urls (SEO section) you need to install the htaccess file. I did as you have suggested and it now works perfectly. Thanks for the assistance and it is really appreciated. hello dear can you tell us how you did that ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.