Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • munders Friend
    #139800

    Hi

    I have a very urgent problem. I need my new site active ASAP. I need to show it to the client tomorrow morning (in 10 hours from now!)

    I used the usual quickstart upload, for the Sanidine II template.

    The install went very well, through the database set up etc, but when I viewed the homepage the following error shows:


    Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/sites/tail-lift-world.com/public_html/new/plugins/content/ja_tabs.php on line 31

    I need to go to bed now, ready for my meeting. I hope someone can help – or it’s bad news for me :((

    Thanks

    Munders.

    ShannonN Friend
    #299346

    munders;121876Hi

    I have a very urgent problem. I need my new site active ASAP. I need to show it to the client tomorrow morning (in 10 hours from now!)

    I used the usual quickstart upload, for the Sanidine II template.

    The install went very well, through the database set up etc, but when I viewed the homepage the following error shows:


    Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/sites/tail-lift-world.com/public_html/new/plugins/content/ja_tabs.php on line 31

    I need to go to bed now, ready for my meeting. I hope someone can help – or it’s bad news for me :((

    Thanks

    Munders.

    Hi Paul
    sounds like a spurious character in the coding of the ja tabs.php if the error msg is to be believed? open the ja_tab.php file from that location in your editor program find line 31 look for the equals sign “=”‘ (without quotes) and replace with what it says it’s expecting, that is . . . the right brace symbol ) save as and run again see if it works now
    Good Luck
    Shannon

    scotty Friend
    #299350

    class plgContentJA_tabs extends JPlugin
    {
    var $style_default = '';

    function plgContentJA_tabs( &$subject, $params )
    {
    parent::__construct( $subject, $params );
    }

    The red line is what line 31 should be. This could be a configuration conflict (bug) in tabs. Try changing some JATabs settings and try again.

    ShannonN Friend
    #299358

    scotty;121889
    class plgContentJA_tabs extends JPlugin
    {
    var $style_default = '';

    function plgContentJA_tabs( &$subject, $params )
    {
    parent::__construct( $subject, $params );
    }

    The red line is what line 31 should be. This could be a configuration conflict (bug) in tabs. Try changing some JATabs settings and try again.

    What he said! He knows way more than me 😀 never thought it’s a conflict, maybe I’m too literal, or believe error messages :p
    ShannonN

    scotty Friend
    #299361

    I could be completely wrong :((. Wouldn’t be the first time.

    scotty Friend
    #299363

    Why does it give one smiley in the editor and a different one in the post? JA can we get this fixed please! (after you sort out munders :))

    munders Friend
    #299411

    I added the new line, but now it gives a fatal error:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2548 bytes) in /home/sites/tail-lift-world.com/public_html/new/modules/mod_jaslideshow/mod_jaslideshow.php on line 306

    Surely it cannot be a memory error as this site has 10gb available.

    This is what line 306 says:

    case ‘jpg’: // jpg
    $src = imagecreatefromjpeg(JPATH_SITE.’/’.$image);
    break;

    Does anyone know how to fix this?

    Thank you for your help guys, and Shannon you always seem like the most helpful guy on these forums.Much appreciated.

    scotty Friend
    #299413

    What new line did you add and where?

    Did you try just changing the config?

    The memory that is being referred to is not the same as the ‘space’ you have on your server.

    munders Friend
    #299417

    I added the red line you displayed above.

    What is the config and is this related to the fatal error?

    Thanks

    Arvind Chauhan Moderator
    #299419

    <em>@munders 121965 wrote:</em><blockquote>I added the new line, but now it gives a fatal error:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2548 bytes) in /home/sites/tail-lift-world.com/public_html/new/modules/mod_jaslideshow/mod_jaslideshow.php on line 306

    Surely it cannot be a memory error as this site has 10gb available.

    .</blockquote>

    Check your site root folder php.ini the memory limit is set to 8 MB, increasing that to around 30 MB will resolve the memoery size allocation error. In case you dont have php.ini in your root folder you will need to create one.

    10 GB you said seems is your hard disk space. The memory allocation for your web account is stated in php.ini.

    regards

    munders Friend
    #299420

    There isn’t a php.ini file in my root folder :((

    How do i create one?

    Thanks

    scotty Friend
    #299421

    No, no, no…. the error is ‘called’ from line 31 of /plugins/content/ja_tabs.php on line 31

    The red line is what line 31 should be. Is yours different? If so then extract /plugins/content/ja_tabs.php on line 31 from your download zip and paste it over. (do the whole file not just the line)

    The config is how you have JA Tabs configured in the module manager also known as parameters. I suspect that (as line 31 calls parameters) there is a configuration conflict in your settings. In other words you have asked tabs to do something it can’t possibly do.

    Arvind Chauhan Moderator
    #299422

    2 ways of increasing memory allocation :
    1. Create a text file add this line memory_limit = 32M save rename to php.ini upload it to your joomla root folder.
    2. OPen your .htaccess file and add this line php_value memory_limit 32M

    Changing the limits in php.ini is preferred way.

    If it doesn’t work you can ask you host to change it for you. In some cases server restart may be required to make it effective. Memmoery execution errors are generally observed for photo galleries which need to resize or create thumbnails.

    Arvind Chauhan Moderator
    #299423

    Scotty i am sorry if my interpretation is wrong. please.

    regards

    arvind

    scotty Friend
    #299425

    …and you may need to reference the php.ini in your htaccsess file too. In your case add…

    suPHP_ConfigPath /home/YOUR_HOST_USERNAME/public_html/new

Viewing 15 posts - 1 through 15 (of 20 total)

This topic contains 20 replies, has 4 voices, and was last updated by  scotty 15 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum