Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 10 of 11

Thread: Upgraded to PHP 5.2.14 - Some languages are broken

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default Upgraded to PHP 5.2.14 - Some languages are broken

    I've recently had my server upgraded to PHP 5.2.14. Currently, memcached is still down, so some functionality isn't working in my other add-ons, but it looks like vBET is.

    However, only a few languages are currently working!

    Danish works: PentaxForums.com - Pentax Photography Forum
    Polish doesn't: http://www.pentaxforums.com/forums/pl/

    This notice is shown on all forum pages:
    Notice: Use of undefined constant DIR - assumed 'DIR' in ************************************************************************************************************************../forums/includes/vbenterprisetranslator_functions_vbseo.php on line 18

    If I change this code in the vbet functions_vbseo file:
    if (!defined(DIR)) {
    define('DIR', (($getcwd = getcwd()) ? $getcwd : '.'));
    }
    to just
    define('DIR', (($getcwd = getcwd()) ? $getcwd : '.'));

    the warning disappears, but my problem isn't fixed. Any idea why this would be? FYI, there are no notices or errors currently being shown on the vBET pages.

    I copied and am still using my old php.ini file, so the same settings are being used as before.

    Thanks for your help!

    Adam
    Last edited by moman; 17-08-10 at 22:41.

  2. #2
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Update- the languages that I thought worked only appear to be working on the homepage! Try to open a thread when logged in as a member (username testuser, password test); it'll show a blank white page.

    Pentax DSLR Diskussion - PentaxForums.com

  3. #3
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Could the problem be with curl or iconv? They are on in PHP, but might not be working properly as a result of the upgrade. Is there any way to check this?
    Last edited by moman; 17-08-10 at 20:11.

  4. #4
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    I have some further insight on the issue-

    Only pages that can be fully fetched from cache are being shown. I tried disabling the cache for Danish, and then no pages were showing up.

  5. #5
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    One more observation:

    This code from my homepage previously successfully included a file (which still works if you open the url direcly), while after the upgrade it did nothing:

    PHP Code:
    <?php include('http://www.pentaxforums.com/content/homepage/rss/rss2html.php?XMLFILE=http://www.pentaxforums.com/forums/external.php?forumids=24,37'); ?>
    I had to add allow_url_include = On to php.ini, and then it worked. Perhaps some other required parameter for vbet is missing from the configuration file?
    Last edited by moman; 17-08-10 at 22:37.

  6. #6
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    And a final update before I go to bed for the night:

    I switched a setting in Plesk so that PHP is now run as a cgi application. This made the translations work again; however, when I switch back to running it as an apache module, evertything breaks again, and translated pages give 500 errors. Any ideas?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •